Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ _open_file
Class
_open_file
python/oneflow/framework/check_point_v2.py:78–83 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
76
77
78
class
_open_file(_opener):
79
def
__init__(self, path, mode):
80
super(_open_file, self).__init__(open(path, mode))
81
82
def
__exit__(self, *args):
83
self.file_like.close()
84
85
86
class
_open_buffer_reader(_opener):
Callers
1
_open_file_like
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected