2b7f4471e764dd4b1a924837b6f515ad7e8a294a,coremltools/converters/nnssa/coreml/ssa_converter.py,SSAConverter,_convert_set_global,#SSAConverter#Any#,924
Before Change
input_name=input_names[0],
output_name=output_name)
shapes.propagate_single_layer(layer, self.tensor_shapes)
if len(node.outputs) > 0:
layer = builder.add_copy(name=node.name,
input_name=input_names[0],
After Change
if len(node.outputs) > 0:
self.op_tensor_map[node.name] = [input_names[0]]
if input_nodes[0].op == "Const" and input_nodes[0].value.val.size == 0:
return
if output_name != input_names[0]:
layer = builder.add_copy(name=node.name,
input_name=input_names[0],
output_name=output_name)
shapes.propagate_single_layer(layer, self.tensor_shapes)
def _convert_return(self, node):
// When converting a body function of a loop, return node should overwrite body functions" input tensors
pass
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: apple/coremltools
Commit Name: 2b7f4471e764dd4b1a924837b6f515ad7e8a294a
Time: 2019-10-03
Author: gdawer@apple.com
File Name: coremltools/converters/nnssa/coreml/ssa_converter.py
Class Name: SSAConverter
Method Name: _convert_set_global
Project Name: apple/coremltools
Commit Name: d1e6e624ef891543c5bba32bb0a696d350714693
Time: 2019-08-20
Author: smq@apple.com
File Name: coremltools/converters/nnssa/coreml/ssa_converter.py
Class Name: SSAConverter
Method Name: _convert_reshape
Project Name: apple/coremltools
Commit Name: fa0e8dd1ce412985c61d3a65014e15239096cd48
Time: 2019-10-22
Author: shuoxin_lin@apple.com
File Name: coremltools/converters/nnssa/coreml/ssa_converter.py
Class Name: SSAConverter
Method Name: _convert_resize_nearest_neighbor