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

Function get_input_id_node

deepspeed/compile/util.py:551–556  ·  view source on GitHub ↗
(gm: GraphModule)

Source from the content-addressed store, hash-verified

549
550
551def get_input_id_node(gm: GraphModule) -> Node:
552 from .fx import find_node_by_tag
553 node = find_node_by_tag(gm, constants.AUTOSP_INPUT_ID_KEY)
554 if node is None:
555 raise RuntimeError("Failed to find a node for the input sequence.")
556 return node
557
558
559def get_label_id_node(gm: GraphModule) -> Node:

Callers 6

testMethod · 0.90
testMethod · 0.90
find_sym_seq_nodeFunction · 0.90
pass_shard_seq_dimFunction · 0.85
pass_shard_input_idsFunction · 0.85

Calls 1

find_node_by_tagFunction · 0.85

Tested by 3

testMethod · 0.72
testMethod · 0.72