MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / __init__

Method __init__

deepspeed/runtime/hybrid_engine_graph.py:49–61  ·  view source on GitHub ↗
(self, forward, max_positions)

Source from the content-addressed store, hash-verified

47 """
48
49 def __init__(self, forward, max_positions):
50 self._forward = forward
51 self._max_positions = max_positions
52
53 self._graphs = {}
54 self._static_kwargs = {}
55 self._static_outputs = {}
56 self._pool = None
57
58 self._position = 0
59 self._captured_length = None
60 self._use_graphs = False
61 self._disabled = False
62
63 @property
64 def captured_positions(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected