Skip to content

Commit

Permalink
Update on "[WIP] JIT Static Hooks: cpp tests"
Browse files Browse the repository at this point in the history
Differential Revision: [D25771118](https://our.internmc.facebook.com/intern/diff/D25771118)

[ghstack-poisoned]
  • Loading branch information
Lilyjjo committed Jan 14, 2021
2 parents 9c04e65 + e57ca5c commit f83e028
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions torch/csrc/jit/api/module_save.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ void Module::save(const std::string& filename, const ExtraFilesMap& extra_files)
if (this->type()->getForwardHooks().size() > 0 ||
this->type()->getForwardPreHooks().size() > 0) {
throw std::runtime_error(
"Cannot save module '" + this->type()->name()->name() +
"' because it has forward hooks or pre-hooks attached. " +
"Saving modules with hooks not supported in FBCODE yet. Please " +
"remove the hooks before scripting if you want to save this model.");
"Cannot save module '" + this->type()->name()->name() +
"' because it has forward hooks or pre-hooks attached. " +
"Saving modules with hooks not supported in FBCODE yet. Please " +
"remove the hooks before scripting if you want to save this model.");
}
#endif
ExportModule(*this, filename, extra_files, false /* bytecode_format */);
Expand Down

0 comments on commit f83e028

Please sign in to comment.