def ReduceProd(onnx_node, ng_inputs): # type: (NodeWrapper, List[TensorOp]) -> Op return make_reduction_op(ng.prod, onnx_node, ng_inputs[0])
def ArgMax(onnx_node, ng_inputs): # type: (NodeWrapper, List[TensorOp]) -> Op return make_reduction_op(ng.argmax, onnx_node, ng_inputs[0])
def ReduceLogSumExp(onnx_node, ng_inputs): # type: (NodeWrapper, List[TensorOp]) -> Op op = ng.exp(ng_inputs[0]) op = make_reduction_op(ng.sum, onnx_node, op) op = ng.log(op) return op