Skip to content

Commit 9709407

Browse files
xuhdevttumiel
authored andcommitted
Replace AT_CHECK with TORCH_CHECK in torch/csrc/jit/pybind_utils.h (pytorch#33524)
Summary: This is generating a considerable amount of warning, due to the fact that the header file is included in multiple places. Pull Request resolved: pytorch#33524 Differential Revision: D20006604 Pulled By: ezyang fbshipit-source-id: 0885cd2a708679ba5eeabb172366eb4c5a3bbef4
1 parent d027d71 commit 9709407

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/csrc/jit/pybind_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ inline IValue toTypeInferredIValue(py::handle input) {
324324

325325
inline Stack toTraceableStack(const py::tuple& inputs) {
326326
auto info = toTypeInferredIValue(inputs);
327-
AT_CHECK(
327+
TORCH_CHECK(
328328
isTraceableType(info.type()),
329329
"Type '",
330330
info.type()->python_str(),

0 commit comments

Comments
 (0)