mirror of
https://github.com/modelscope/modelscope.git
synced 2026-09-01 19:49:03 +02:00
fix json loads numpy
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/12071834 * fix jsonplus * add unittest * fix json dump np float
This commit is contained in:
committed by
wenmeng.zwm
parent
4bae2cf823
commit
8d8de93779
@@ -378,6 +378,8 @@ _decode_handlers = {
|
||||
'tuple': tuple,
|
||||
'set': set,
|
||||
'ndarray': np.asarray,
|
||||
'float16': np.float16,
|
||||
'float32': np.float32,
|
||||
'frozenset': frozenset,
|
||||
'complex': kwargified(complex),
|
||||
'Decimal': Decimal,
|
||||
|
||||
Reference in New Issue
Block a user