MCPcopy
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_portFunction · 0.45
_get_cpu_socket_countFunction · 0.45
_close_poolMethod · 0.45
test_offset_writeMethod · 0.45
test_offset_writeMethod · 0.45
print_model_profileMethod · 0.45
close_output_fileMethod · 0.45
close_output_fileMethod · 0.45
has_functionMethod · 0.45

Calls 1

_incr_statsMethod · 0.80

Tested by 4

test_offset_writeMethod · 0.36
test_offset_writeMethod · 0.36