695b173af1e0db468515447b459b59a6a9a626e5,src/graph_transpiler/webdnn/frontend/chainer/functions/math.py,,_convert_expm1,#Any#Any#,72

Before Change


@ChainerConverter.register_handler("Expm1")
def _convert_expm1(converter: ChainerConverter, c_op: "chainer.functions.Expm1"):
    // TODO
    raise NotImplementedError("[ChainerConverter] Expm1 is not supported")


// noinspection PyUnusedLocal
@ChainerConverter.register_handler("Floor")

After Change


def _convert_expm1(converter: ChainerConverter, c_op: "chainer.functions.Expm1"):
    console.warning("[ChainerConverter] In WebDNN, \"Expm1(x)\" is converted into \"Exp(x)-1\", which is not enough accurate as Expm1 when"
                    "x is so small that \"Exp(x) == 1\" in floating point accuracy.")
    x = converter.get_variable(c_op.inputs[0])
    y = Exp(None)(x)[0] - 1
    converter.set_variable(c_op.outputs[0](), y)


// noinspection PyUnusedLocal
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: mil-tokyo/webdnn
Commit Name: 695b173af1e0db468515447b459b59a6a9a626e5
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/math.py
Class Name:
Method Name: _convert_expm1


Project Name: mil-tokyo/webdnn
Commit Name: e5e24f90d849dcc98f8e112fc9e47ab4bee474fb
Time: 2017-08-01
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/math.py
Class Name:
Method Name: _convert_exp


Project Name: mil-tokyo/webdnn
Commit Name: 5cf0a414aa1f7c17fdc0eced712de551c335a25c
Time: 2017-11-30
Author: y.kikura@gmail.com
File Name: src/graph_transpiler/webdnn/frontend/chainer/functions/activation.py
Class Name:
Method Name: _convert_log_softmax