Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/InternLM/InternLM
/ empty
Method
empty
internlm/solver/optimizer/store.py:312–314 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
310
return
self._bucket
311
312
def
empty(self):
313
self._bucket = []
314
self._size = 0
315
316
def
flatten(self):
317
return
_flatten_dense_tensors(self._bucket)
Callers
9
_reduce_grads_by_rank
Method · 0.95
main
Function · 0.80
create_recv_buffer_with_shapes
Function · 0.80
recv_meta_helper
Function · 0.80
recv_obj_meta
Function · 0.80
split_tensor_into_1d_equal_chunks
Function · 0.80
gather_split_1d_tensor
Function · 0.80
__init__
Method · 0.80
__init__
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected