5cf0a414aa1f7c17fdc0eced712de551c335a25c,src/graph_transpiler/webdnn/frontend/chainer/functions/math.py,,_convert_log10,#Any#Any#,52
Before Change
@ChainerConverter.register_handler("Log10")
def _convert_log10(converter: ChainerConverter, c_op: "chainer.functions.Log10"):
// TODO
raise NotImplementedError("[ChainerConverter] Log10 is not supported")
// noinspection PyUnusedLocal
@ChainerConverter.register_handler("Log2")
After Change
@ChainerConverter.register_handler("Log10")
def _convert_log10(converter: ChainerConverter, c_op: "chainer.functions.Log10"):
x = converter.get_variable(c_op.inputs[0])
y, = Log(None)(x) / np.log(10)
converter.set_variable(c_op.outputs[0](), y)
@ChainerConverter.register_handler("Log2")
def _convert_log2(converter: ChainerConverter, c_op: "chainer.functions.Log2"):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 16
Instances
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/math.py
Class Name:
Method Name: _convert_log10
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/math.py
Class Name:
Method Name: _convert_log
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/math.py
Class Name:
Method Name: _convert_log2
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/math.py
Class Name:
Method Name: _convert_log1p