0635d25a479a532df63a981eaf5cf07eadabb160,src/graph_transpiler/webdnn/frontend/keras/layers/convolutional.py,,_convert_zero_padding2d,#Any#Any#,180
Before Change
@KerasConverter.register_handler("ZeroPadding2D")
def _convert_zero_padding2d(converter: KerasConverter, k_op: "keras.layers.ZeroPadding2D"):
x = converter.get_variable(converter.get_input_tensor(k_op)[0])
if k_op.data_format == "channels_first":
x.order.unify(OrderNCHW)
elif k_op.data_format == "channels_last":
x.order.unify(OrderNHWC)
else:
raise ValueError(f"[KerasConverter] Unknown data format is detected: {k_op.data_format}")
padding = k_op.padding
top = padding[0][0]
if top != padding[0][1]:
// FIXME: This condition should be checked in each backend
After Change
@KerasConverter.register_handler("ZeroPadding2D")
def _convert_zero_padding2d(converter: KerasConverter, k_op: "keras.layers.ZeroPadding2D"):
x = converter.get_variable(converter.get_input_tensor(k_op)[0])
check_data_format(x, k_op.data_format)
padding = k_op.padding
top = padding[0][0]
if top != padding[0][1]:
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 14
Instances
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/convolutional.py
Class Name:
Method Name: _convert_zero_padding2d
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/pooling.py
Class Name:
Method Name: _convert_max_pooling2d
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/pooling.py
Class Name:
Method Name: convert_layer_global_average_pooling2d
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/convolutional.py
Class Name:
Method Name: _convert_conv2d_transpose
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/convolutional.py
Class Name:
Method Name: _convert_conv2d
Project Name: mil-tokyo/webdnn
Commit Name: 0635d25a479a532df63a981eaf5cf07eadabb160
Time: 2017-11-28
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/pooling.py
Class Name:
Method Name: _convert_global_max_pooling2d