@@ -113,9 +113,9 @@ def _get_expected_matrix_apis():
113
113
'to_torch'
114
114
]
115
115
user_api [ti .MatrixNdarray ] = [
116
- 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'to_numpy'
116
+ 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'get_type' , ' to_numpy'
117
117
]
118
- user_api [ti .Ndarray ] = ['copy_from' , 'element_shape' , 'fill' ]
118
+ user_api [ti .Ndarray ] = ['copy_from' , 'element_shape' , 'fill' , 'get_type' ]
119
119
user_api [ti .SNode ] = [
120
120
'bit_array' , 'bit_struct' , 'bitmasked' , 'deactivate_all' , 'dense' ,
121
121
'dynamic' , 'lazy_grad' , 'parent' , 'place' , 'pointer' , 'shape'
@@ -125,7 +125,7 @@ def _get_expected_matrix_apis():
125
125
'parent' , 'shape' , 'snode' , 'to_numpy' , 'to_paddle' , 'to_torch'
126
126
]
127
127
user_api [ti .ScalarNdarray ] = [
128
- 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'to_numpy'
128
+ 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'get_type' , ' to_numpy'
129
129
]
130
130
user_api [ti .Struct ] = ['field' , 'fill' , 'items' , 'keys' , 'to_dict' ]
131
131
user_api [ti .StructField ] = [
@@ -134,7 +134,7 @@ def _get_expected_matrix_apis():
134
134
'to_paddle' , 'to_torch'
135
135
]
136
136
user_api [ti .VectorNdarray ] = [
137
- 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'to_numpy'
137
+ 'copy_from' , 'element_shape' , 'fill' , 'from_numpy' , 'get_type' , ' to_numpy'
138
138
]
139
139
140
140
0 commit comments