@@ -52,7 +52,7 @@ def process_tensor(tensor):
52
52
53
53
info = tensor_info (tensor )
54
54
if tensor .dtype in [torch .int8 , torch .int16 , torch .int32 , torch .int64 ]:
55
- if tensor .numel () < 1024 :
55
+ if tensor .numel () < 64 :
56
56
return {
57
57
"type" : "small_int_tensor" ,
58
58
"data" : tensor .clone (),
@@ -65,7 +65,7 @@ def process_tensor(tensor):
65
65
"max_val" : tensor .max ().item (),
66
66
"info" : info ,
67
67
}
68
- elif tensor .numel () < 1024 :
68
+ elif tensor .numel () < 64 :
69
69
return {"type" : "small_tensor" , "data" : tensor .clone (), "info" : info }
70
70
else :
71
71
return {"type" : "random_tensor" , "info" : info }
@@ -80,7 +80,7 @@ def process_tensor(tensor):
80
80
def handle_named_tensors (tensor ):
81
81
info = tensor_info (tensor )
82
82
if tensor .dtype in [torch .int8 , torch .int16 , torch .int32 , torch .int64 ]:
83
- if tensor .numel () < 1024 :
83
+ if tensor .numel () < 64 :
84
84
return {
85
85
"info" : info ,
86
86
"data" : tensor .clone (),
@@ -93,7 +93,7 @@ def handle_named_tensors(tensor):
93
93
"max_val" : tensor .max ().item (),
94
94
"type" : "big_int_tensor_by_range" ,
95
95
}
96
- if tensor .numel () < 1024 :
96
+ if tensor .numel () < 64 :
97
97
return {"info" : info , "data" : tensor .clone (), "type" : "small_tensor" }
98
98
else :
99
99
return {"info" : info , "data" : None , "type" : "random_tensor" }
0 commit comments