MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / Reset

Method Reset

oneflow/core/framework/variable_tensor_mgr.cpp:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void VariableTensorMgr::Reset() {
81 std::map<std::string, std::shared_ptr<one::Tensor>>().swap(variables_);
82}
83
84std::vector<std::string> VariableTensorMgr::DumpNames() {
85 std::vector<std::string> variable_op_names;

Callers 2

SyncAccessSmallMemFunction · 0.45

Calls 1

swapMethod · 0.45

Tested by

no test coverage detected