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)
| 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): |
nothing calls this directly
no test coverage detected