MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / put_operand

Function put_operand

tensorflow/lite/python/op_hint.py:762–769  ·  view source on GitHub ↗

Add a given index into the function structure.

(stuff, index, sort, operand, aggregation)

Source from the content-addressed store, hash-verified

760
761 # Add the input or output
762 def put_operand(stuff, index, sort, operand, aggregation):
763 """Add a given index into the function structure."""
764 if sort is None:
765 stuff[index] = _LiteSingleOperand(operand)
766 else:
767 if index not in stuff:
768 stuff[index] = _LiteAggregateOperand(aggregation)
769 stuff[index].add(sort, operand)
770
771 if OpHint.FUNCTION_INPUT_INDEX_ATTR in attr:
772 put_operand(call_def.inputs, attr[OpHint.FUNCTION_INPUT_INDEX_ATTR].i,

Callers 1

_find_all_hints_in_nodesFunction · 0.85

Calls 3

_LiteSingleOperandClass · 0.85
addMethod · 0.45

Tested by

no test coverage detected