MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / get_data

Method get_data

DeepSpeedExample/megatron/memory.py:110–115  ·  view source on GitHub ↗

Return the data currently in use.

(self)

Source from the content-addressed store, hash-verified

108
109
110 def get_data(self):
111 """Return the data currently in use."""
112 if self.track_usage:
113 self.in_use_value += float(self._start)
114 self.total_value += float(self.numel)
115 return self.data[:self._start]
116
117
118 def print_average_usage(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected