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

Method _create_where

python/singa/sonnx.py:1188–1199  ·  view source on GitHub ↗

get the Where operator from onnx node Args: onnx_node (OnnxNode): a given onnx node operator (Operator Class): a singa operator class opset_version (int): the opset version Returns: singa operator instance

(cls, onnx_node, operator, opset_version=_opset_version)

Source from the content-addressed store, hash-verified

1186
1187 @classmethod
1188 def _create_where(cls, onnx_node, operator, opset_version=_opset_version):
1189 """
1190 get the Where operator from onnx node
1191 Args:
1192 onnx_node (OnnxNode): a given onnx node
1193 operator (Operator Class): a singa operator class
1194 opset_version (int): the opset version
1195 Returns:
1196 singa operator instance
1197 """
1198 onnx_node.set_attr_inputs(onnx_node.inputs[0], 'condition')
1199 return operator(None)
1200
1201 @classmethod
1202 def _create_pad(cls, onnx_node, operator, opset_version=_opset_version):

Callers

nothing calls this directly

Calls 1

set_attr_inputsMethod · 0.80

Tested by

no test coverage detected