pytorch/test/cpp
Nikita Shulga cabb1e7a94 Fix wrong TORCH_CHECK usages (#52670)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/52670

TORCH_CHECK followed by a string literal is a no-op, and from the text of the message its clear that authors intended those instances to be `TORCH_CHECK(false, "msg")`

Discovered while trying to figure out of tensor_offset can be negative in Resize.h

s/TORCH_CHECK\("/TORCH_CHECK(false, "/

Test Plan: Imported from OSS

Reviewed By: walterddr, janeyx99, mruberry

Differential Revision: D26607546

Pulled By: malfet

fbshipit-source-id: 661812da84adb1d1af0284da60c93ec4bf5ef08e
2021-02-23 14:47:51 -08:00
..
api Fix autograd when inputs contains tensors without materialized grad_fn (#51940) 2021-02-11 09:22:15 -08:00
common
dist_autograd Fix Windows build failure after DDP PR merged (#45335) 2020-09-25 12:37:50 -07:00
jit Fix wrong TORCH_CHECK usages (#52670) 2021-02-23 14:47:51 -08:00
lite_interpreter_runtime [PyTorch] update CMake to build libtorch lite (#51419) 2021-02-21 01:43:54 -08:00
rpc [RPC] Refactor rref_context to not use utils::Future (#51697) 2021-02-19 00:59:38 -08:00
tensorexpr [TensorExpr] Properly handle ExternalCalls in LoadStore analysis and Inliner. (#52628) 2021-02-22 21:50:48 -08:00
__init__.py