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

Function rematable_storage

oneflow/api/python/remat/remat.cpp:30–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28
29namespace {
30Maybe<vm::RematableTensorStorage> rematable_storage(const std::shared_ptr<one::Tensor>& tensor) {
31 auto ret = std::dynamic_pointer_cast<vm::RematableTensorStorage>(
32 JUST(tensor->eager_blob_object())->tensor_storage());
33 CHECK_NOTNULL_OR_RETURN(ret);
34 return ret;
35}
36} // namespace
37
38ONEFLOW_API_PYBIND11_MODULE("remat", m) {

Callers 1

remat.cppFile · 0.85

Calls 2

tensor_storageMethod · 0.45
eager_blob_objectMethod · 0.45

Tested by

no test coverage detected