Skip to content

modify np.int with np.int64 #49967

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 31, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def generate_depth(dims, batch):
},
"op_outputs": {"Out": ["output_data"]},
"op_attrs": dics[0],
"outputs_dtype": {"output_data": np.int},
"outputs_dtype": {"output_data": np.int64},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

如果能确定,代码里的np.int表示的就是np.int64,那就改成np.int64,否则就用np.int_。np.int_不会改变原行为。
建议改成np.int_吧。
8488bc4f8ffc037a4528a18fca75baec

},
]
ops = self.generate_op_config(ops_config)
Expand Down