7cab92a106ec13aee7e14a9674340e8cc13c7e53,src/graph_transpiler/webdnn/frontend/chainer/functions/activation.py,,_convert_crelu,#Any#Any#,27
Before Change
@ChainerConverter.register_handler("CReLU")
def _convert_crelu(converter: ChainerConverter, c_op: "chainer.functions.CReLU"):
// TODO
raise NotImplementedError("[ChainerConverter] CReLU is not supported")
@ChainerConverter.register_handler("ELU")
def _convert_elu(converter: ChainerConverter, c_op: "chainer.functions.ELU"):
After Change
@ChainerConverter.register_handler("CReLU")
def _convert_crelu(converter: ChainerConverter, c_op: "chainer.functions.CReLU"):
x = converter.get_variable(c_op.inputs[0])
y1, = Relu(None)(x)
y2, = Relu(None)(-x)
y, = Concat(None, axis=x.order.axes[c_op.axis])(y1, y2)
converter.set_variable(c_op.outputs[0](), y)
@ChainerConverter.register_handler("ELU")
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances
Project Name: mil-tokyo/webdnn
Commit Name: 7cab92a106ec13aee7e14a9674340e8cc13c7e53
Time: 2017-07-15
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/activation.py
Class Name:
Method Name: _convert_crelu
Project Name: mil-tokyo/webdnn
Commit Name: d09e215274aa7212b4fc2caf070dd1eacf110134
Time: 2017-07-04
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/basic_math.py
Class Name:
Method Name: _convert_absolute
Project Name: mil-tokyo/webdnn
Commit Name: a4dbf61c7be5713b93d50e13fd48e0410967ee61
Time: 2017-07-04
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/keras/layers/advanced_activations.py
Class Name:
Method Name: _convert_thresholded_relu