Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/deepspeedai/DeepSpeed
/ close
Method
close
deepspeed/io/py_file_writer.py:17–19 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
15
self._fp = open(file_path,
'wb'
)
16
17
def
close(self):
18
self._incr_stats(CLOSE_COUNT_KEY)
19
self._fp.close()
20
21
def
fileno(self):
22
self._incr_stats(FILENO_COUNT_KEY)
Callers
11
get_master_port
Function · 0.45
_get_cpu_socket_count
Function · 0.45
_close_pool
Method · 0.45
test_close_releases_fd_after_unlink
Function · 0.45
test_rotation_loop_does_not_leak
Function · 0.45
test_offset_write
Method · 0.45
test_offset_write
Method · 0.45
print_model_profile
Method · 0.45
close_output_file
Method · 0.45
close_output_file
Method · 0.45
has_function
Method · 0.45
Calls
1
_incr_stats
Method · 0.80
Tested by
4
test_close_releases_fd_after_unlink
Function · 0.36
test_rotation_loop_does_not_leak
Function · 0.36
test_offset_write
Method · 0.36
test_offset_write
Method · 0.36