projects
/
platform
/
upstream
/
pytorch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8883ac4
)
Remove unused field in jit script module deserializer (#15439)
author
Lu Fang
<lufang@fb.com>
Fri, 21 Dec 2018 00:14:16 +0000
(16:14 -0800)
committer
Facebook Github Bot
<facebook-github-bot@users.noreply.github.com>
Fri, 21 Dec 2018 00:18:40 +0000
(16:18 -0800)
Summary:
A little bit clean up.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15439
Reviewed By: zrphercule
Differential Revision:
D13532015
Pulled By: houseroad
fbshipit-source-id:
2fb1e01fc28549c7e78af6c65ee68339950bc7da
torch/csrc/jit/import.cpp
patch
|
blob
|
history
diff --git
a/torch/csrc/jit/import.cpp
b/torch/csrc/jit/import.cpp
index
7214558
..
bba1d1b
100644
(file)
--- a/
torch/csrc/jit/import.cpp
+++ b/
torch/csrc/jit/import.cpp
@@
-49,7
+49,6
@@
private:
void loadTensorTable(torch::ModelDef* model_def);
- std::ifstream ifs_;
PyTorchStreamReader reader_;
// this is a hack to make sure the script module created in C++ is the
// same as created in Python
@@
-66,7
+65,7
@@
ScriptModuleDeserializer::ScriptModuleDeserializer(const std::string& filename)
}
ScriptModuleDeserializer::ScriptModuleDeserializer(std::istream* is)
- :
ifs_(),
reader_(is) {}
+ : reader_(is) {}
void ScriptModuleDeserializer::deserialize(ModuleLookup module_lookup,
c10::optional<at::Device> device) {