pytorch/test/cpp
davidriazati 3c07eb33bb Better error for torch::jit::loading a eager file (#31709)
Summary:
This adds a check to catch the case where someone `torch.save`s something then `torch::jit::load`s it in C++.

Relevant for #31620
](https://our.intern.facebook.com/intern/diff/19252172/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31709

Pulled By: driazati

Differential Revision: D19252172

fbshipit-source-id: f2a9b4442647285418b2778306629b4ff77c15e5
2020-01-07 16:20:42 -08:00
..
api For torch::from_blob() add clue when memory is non-owned. (#31222) 2020-01-07 13:12:30 -08:00
common Trim libshm deps, move tempfile.h to c10 (#17019) 2019-02-13 19:38:35 -08:00
dist_autograd Remove unused argument "destId" in addSendRpcBackward (#31207) 2019-12-14 20:28:29 -08:00
jit Better error for torch::jit::loading a eager file (#31709) 2020-01-07 16:20:42 -08:00
rpc Avoid sending large unneeded data over wire in process_group_agent. (#31357) 2019-12-18 19:24:24 -08:00
__init__.py Add train() / eval() / is_training() to C++ ScriptModule API (#16044) 2019-02-01 13:07:38 -08:00