未验证 提交 4514f16d 编写于 作者: W wanghuancoder 提交者: GitHub

fix slot, test=develop (#38738)

上级 d422a1ed
...@@ -741,6 +741,10 @@ extern struct PyGetSetDef variable_properties[]; ...@@ -741,6 +741,10 @@ extern struct PyGetSetDef variable_properties[];
extern PyMethodDef variable_methods[]; extern PyMethodDef variable_methods[];
PyNumberMethods number_methods;
PySequenceMethods sequence_methods;
PyMappingMethods mapping_methods;
PyTypeObject eager_tensor_type = { PyTypeObject eager_tensor_type = {
PyVarObject_HEAD_INIT(NULL, 0) "core_avx.eager.EagerTensor", /* tp_name */ PyVarObject_HEAD_INIT(NULL, 0) "core_avx.eager.EagerTensor", /* tp_name */
sizeof(EagerTensorObject), /* tp_basicsize */ sizeof(EagerTensorObject), /* tp_basicsize */
...@@ -751,9 +755,9 @@ PyTypeObject eager_tensor_type = { ...@@ -751,9 +755,9 @@ PyTypeObject eager_tensor_type = {
0, /* tp_setattr */ 0, /* tp_setattr */
0, /* tp_reserved */ 0, /* tp_reserved */
0, /* tp_repr */ 0, /* tp_repr */
0, /* tp_as_number */ &number_methods, /* tp_as_number */
0, /* tp_as_sequence */ &sequence_methods, /* tp_as_sequence */
0, /* tp_as_mapping */ &mapping_methods, /* tp_as_mapping */
0, /* tp_hash */ 0, /* tp_hash */
0, /* tp_call */ 0, /* tp_call */
0, /* tp_str */ 0, /* tp_str */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册