2a4e2b1b131d9a1b48d8eba5479b585bf328d3ba,onnx_tf/backend.py,TensorflowBackend,handle_elu,#Any#Any#Any#,745
Before Change
@classmethod
def handle_elu(cls, node, input_dict):
x = input_dict[node.inputs[0]]
if "alpha" in node.attrs.keys():
warnings.warn("Unsupported alpha attribute by Tensorflow in Elu."
"This attribute will be ignored.", UserWarning)
return [tf.nn.elu(x)]
@classmethod
def handle_flatten(cls, node, input_dict):
After Change
x = input_dict[node.inputs[0]]
alpha = node.attrs.get("alpha", 1.0)
if "alpha" in node.attrs.keys():
return [tf.cast(x < 0.0, tf.float32) * alpha * (tf.exp(x) - 1.0) + tf.cast(x >= 0.0, tf.float32) * x]
else:
return [tf.nn.elu(x)]
@classmethod
def handle_flatten(cls, node, input_dict):
tensor = input_dict[node.inputs[0]]
axis = node.attrs["axis"] if "axis" in node.attrs.keys() else 1
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
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: handle_elu
Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation3d.py
Class Name: RandomRotation3D
Method Name: __init__
Project Name: arraiy/torchgeometry
Commit Name: 6ee3f1b0d2a6ebadc9e2f664354594342ab0805d
Time: 2020-11-21
Author: justanhduc@users.noreply.github.com
File Name: kornia/augmentation/augmentation.py
Class Name: RandomPerspective
Method Name: __init__