container.add_node("Identity", intermediate_output_name, output_name, op_version=1, name=name)
else:
// ONNX-1.2 has a new Tile and we use it here
container.add_node("Tile", input_name, output_name, op_version=7, name=name, repeats=repeats)
def apply_transpose(scope, input_name, output_name, container, operator_name=None, perm=None):
name = _create_name_or_use_existing_one(scope, "Transpose", operator_name)
After Change
// ONNX-1.2 has a new Tile and we use it here
repeat_tensor_name = scope.get_unique_variable_name(name + "_repeats")
container.add_initializer(repeat_tensor_name, onnx_proto.TensorProto.INT64, [len(repeats)], repeats)
container.add_node("Tile", [input_name, repeat_tensor_name], output_name, op_version=7, name=name)
def apply_transpose(scope, input_name, output_name, container, operator_name=None, perm=None):