c683f4b1b06a2108249820888516b333313e0569,python/src/nnabla/utils/converter/onnx/importer.py,OnnxImporter,ReduceScalar,#OnnxImporter#Any#Any#Any#,1414
Before Change
if func_param:
set_reduction_attrs(func_param, n)
output_shape = self.get_func_input_shape(func.input[0])
for i in func_param.axes:
if func_param.keep_dims:
output_shape[i] = 1
else:
del output_shape[i]
self._shape_output[func.output[0]] = output_shape
func_list.append(func)
def Constant(self, func_list, n):
After Change
if func_param:
set_reduction_attrs(func_param, n)
output_shape = self.get_func_input_shape(func.input[0])
if len(func_param.axes) == 0:
func_param.axes.extend(range(len(output_shape)))
if func_param.keep_dims:
output_shape = [1 if i in func_param.axes else output_shape[i]
for i in range(len(output_shape))]
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: sony/nnabla
Commit Name: c683f4b1b06a2108249820888516b333313e0569
Time: 2019-08-07
Author: Yuchi.Wen@sony.com
File Name: python/src/nnabla/utils/converter/onnx/importer.py
Class Name: OnnxImporter
Method Name: ReduceScalar
Project Name: idank/explainshell
Commit Name: 1fffcec16578e6bea8de6e685632b3f56713a438
Time: 2013-09-07
Author: idankk86@gmail.com
File Name: explainshell/matcher.py
Class Name: matcher
Method Name: _mergeadjacent
Project Name: sony/nnabla
Commit Name: c683f4b1b06a2108249820888516b333313e0569
Time: 2019-08-07
Author: Yuchi.Wen@sony.com
File Name: python/src/nnabla/utils/converter/onnx/importer.py
Class Name: OnnxImporter
Method Name: ReduceScalar
Project Name: dPys/PyNets
Commit Name: 119d1b9063ac43d96622f40e9bffebbefa2a732f
Time: 2018-06-18
Author: dpisner@utexas.edu
File Name: pynets/plotting.py
Class Name:
Method Name: plot_all