2a4e2b1b131d9a1b48d8eba5479b585bf328d3ba,onnx_tf/backend.py,TensorflowBackend,get_data_format,#Any#Any#Any#,621
Before Change
def get_data_format(cls, x_rank, support_cuda):
if support_cuda:
data_format = "NCDHW"
if x_rank == 3:
data_format = "NCW"
elif x_rank == 4:
data_format = "NCHW"
else:
data_format = "NDHWC"
if x_rank == 3:
data_format = "NWC"
After Change
for i in range(x_rank-2):
sp_dim_lst.append(sp_dim_names[-i-1])
sp_dim_string = "".join(reversed(sp_dim_lst))
storage_format = "NC" + sp_dim_string
if support_cuda:
compute_format = "NC" + sp_dim_string
else:
compute_format = "N" + sp_dim_string + "C"
return storage_format, compute_format
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 4
Instances
Project Name: onnx/onnx-tensorflow
Commit Name: 2a4e2b1b131d9a1b48d8eba5479b585bf328d3ba
Time: 2017-12-04
Author: tjingrant@gmail.com
File Name: onnx_tf/backend.py
Class Name: TensorflowBackend
Method Name: get_data_format
Project Name: tensorflow/datasets
Commit Name: 55bb2a80ab674c2f6254ac74d90bd6e5f478e895
Time: 2018-12-07
Author: afrozm@google.com
File Name: tensorflow_datasets/scripts/document_datasets.py
Class Name:
Method Name: make_statistics_information
Project Name: HyperGAN/HyperGAN
Commit Name: 7a65d9993bdda4a5248f6aa313abf687faa031a6
Time: 2020-06-27
Author: martyn@255bits.com
File Name: hypergan/configurable_component.py
Class Name: ConfigurableComponent
Method Name: layer_linear
Project Name: ultralytics/yolov3
Commit Name: 2df8d7e9f6fd3a3e0233029bf39d4db66807a229
Time: 2019-03-15
Author: glenn.jocher@ultralytics.com
File Name: utils/utils.py
Class Name:
Method Name: non_max_suppression
Project Name: hls-fpga-machine-learning/hls4ml
Commit Name: 371c4893f7d404fc0f9d5dd38dfab6c4ef568b43
Time: 2019-08-23
Author: vloncar@users.noreply.github.com
File Name: hls-writer/hls_model.py
Class Name: Layer
Method Name: __init__