MCPcopy Create free account
hub / github.com/apache/singa / _get_singa_op_inputs_outputs

Method _get_singa_op_inputs_outputs

python/singa/sonnx.py:664–677  ·  view source on GitHub ↗

get inputs and outputs from a given operator Args: op: a given operator Returns: inputs and outputs of the op

(cls, op)

Source from the content-addressed store, hash-verified

662
663 @classmethod
664 def _get_singa_op_inputs_outputs(cls, op):
665 """
666 get inputs and outputs from a given operator
667 Args:
668 op: a given operator
669 Returns:
670 inputs and outputs of the op
671 """
672 outputs = [op.output_name(idx) for _, idx in op.y_id2idx.items()]
673 inputs = [
674 srcop.output_name(srcop.y_id2idx[yid])
675 for (srcop, yid, _, _) in op.src
676 ]
677 return inputs, outputs
678
679 @classmethod
680 def _get_singa_op_type(cls, op):

Callers 1

Calls 1

output_nameMethod · 0.45

Tested by

no test coverage detected