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

Method _create_tile

python/singa/sonnx.py:1538–1549  ·  view source on GitHub ↗

get the Tile 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

1536
1537 @classmethod
1538 def _create_tile(cls, onnx_node, operator, opset_version=_opset_version):
1539 """
1540 get the Tile operator from onnx node
1541 Args:
1542 onnx_node (OnnxNode): a given onnx node
1543 operator (Operator Class): a singa operator class
1544 opset_version (int): the opset version
1545 Returns:
1546 singa operator instance
1547 """
1548 onnx_node.set_attr_inputs(onnx_node.inputs[1], 'repeats')
1549 return operator(None)
1550
1551 @classmethod
1552 def _create_gather(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