MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / is_in_use

Method is_in_use

codegeex/megatron/memory.py:82–84  ·  view source on GitHub ↗

Whether the current buffer hold on to any memory.

(self)

Source from the content-addressed store, hash-verified

80 self._start = 0
81
82 def is_in_use(self):
83 """Whether the current buffer hold on to any memory."""
84 return self._start > 0
85
86 def numel_in_use(self):
87 """Return number of elements in use."""

Callers 1

get_next_bufferMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected