Home
last modified time | relevance | path

Searched defs:TORCH_CHECK (Results 1 – 11 of 11) sorted by relevance

/external/pytorch/torch/csrc/
DModule.cpp233 TORCH_CHECK( in THPModule_crashIfCsrcASAN() local
247 TORCH_CHECK( in THPModule_crashIfCsrcUBSAN() local
278 TORCH_CHECK( in THPModule_crashIfATenASAN() local
296 TORCH_CHECK( in THPModule_crashIfDebugAssertsFail() local
313 TORCH_CHECK( in THPModule_setNumThreads() local
334 TORCH_CHECK( in THPModule_setNumInteropThreads() local
496 TORCH_CHECK( in THPModule_setBackcompatBroadcastWarn() local
519 TORCH_CHECK( in THPModule_setBackcompatKeepdimWarn() local
594 TORCH_CHECK(THPVariable_Check(data), "data must be a Tensor"); in THPModule_toDLPack() local
625 TORCH_CHECK( in THModule_rename_privateuse1_backend() local
[all …]
DStorageSharing.cpp159 TORCH_CHECK(PyTuple_GET_SIZE(args) == 3, "tuple of 3 items expected"); in THPStorage_newSharedFilename() local
251 TORCH_CHECK(PyTuple_GET_SIZE(args) == 2, "tuple of 2 items expected"); in THPStorage_newSharedFd() local
379 TORCH_CHECK(PyTuple_GET_SIZE(args) == 2, "tuple of 2 items expected"); in THPStorage_releaseIPCCounter() local
432 TORCH_CHECK(PyTuple_GET_SIZE(args) == 8, "tuple of 8 items expected"); in THPStorage_newSharedCuda() local
586 TORCH_CHECK( in THPStorage_newWithWeakPtr() local
613 TORCH_CHECK(THPUtils_checkLong(arg), "_expired(): arg must be an 'int'"); in THPStorage_expired() local
DStorageMethods.cpp463 TORCH_CHECK( in THPStorage_newWithFile() local
569 TORCH_CHECK(PyTuple_GET_SIZE(args) == 1, "tuple of 1 item expected"); in THPStorage_byteswap() local
DStorage.cpp299 TORCH_CHECK( in THPStorage_pynew() local
/external/pytorch/torch/csrc/xpu/
DModule.cpp50 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to set_device"); in THXPModule_setDevice_wrap() local
61 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to exchange_device"); in THXPModule_exchangeDevice_wrap() local
77 TORCH_CHECK( in THXPModule_maybeExchangeDevice_wrap() local
112 TORCH_CHECK( in THXPModule_getCurrentStream_wrap() local
133 TORCH_CHECK( in THXPModule_getCurrentStream_raw() local
181 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to synchronize"); in THXPModule_xpuSynchronize() local
202 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to memory_stats"); in THXPModule_memoryStats() local
245 TORCH_CHECK( in THXPModule_resetPeakMemoryStats() local
257 TORCH_CHECK( in THXPModule_resetAccumulatedMemoryStats() local
/external/pytorch/torch/csrc/cuda/
DModule.cpp87 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to setDevice"); in THCPModule_setDevice_wrap() local
99 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to exchangeDevice"); in THCPModule_exchangeDevice() local
114 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to exchangeDevice"); in THCPModule_maybeExchangeDevice() local
191 TORCH_CHECK( in THCPModule_getCurrentStream_wrap() local
212 TORCH_CHECK( in THCPModule_getCurrentStream_raw() local
224 TORCH_CHECK( in THCPModule_getDefaultStream_wrap() local
465 TORCH_CHECK( in THCPModule_cudaSleep() local
513 TORCH_CHECK( in THCPModule_hasPrimaryContext() local
565 TORCH_CHECK(THPUtils_checkLong(arg), "invalid argument to memory_allocated"); in THCPModule_memoryStats() local
623 TORCH_CHECK( in THCPModule_resetAccumulatedMemoryStats() local
[all …]
/external/pytorch/c10/util/
DException.h524 #define TORCH_CHECK(cond, ...) \ macro
533 #define TORCH_CHECK(cond, ...) \ macro
/external/pytorch/torch/csrc/mps/
DModule.cpp97 TORCH_CHECK( in MPSModule_setMemoryFraction() local
/external/pytorch/torch/csrc/autograd/
Dinit.cpp1204 TORCH_CHECK(mode != Py_None); in set_dispatch_mode() local
1224 TORCH_CHECK(arg != Py_None); in get_dispatch_mode() local
1240 TORCH_CHECK(arg != Py_None); in unset_dispatch_mode() local
Dpython_function.cpp79 TORCH_CHECK(!self->has_freed_buffers, ERR_BACKWARD_TWICE); in unpack_saved_variables() local
1400 TORCH_CHECK(THPVariable_Check(_var), "_register_hook_dict expected a Tensor"); in THPFunction__register_hook_dict() local
1578 TORCH_CHECK(!self->has_freed_buffers, ERR_BACKWARD_TWICE); in THPFunction_raw_saved_tensors() local
Dpython_variable.cpp1881 TORCH_CHECK( in THPVariable_pynew() local