14 lines
359 B
Python
14 lines
359 B
Python
# Copyright (c) ONNX Project Contributors
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
from __future__ import annotations
|
|
|
|
import numpy as np
|
|
|
|
from onnx.reference.ops._op import OpRunBinaryNumpy
|
|
|
|
|
|
class Sub(OpRunBinaryNumpy):
|
|
def __init__(self, onnx_node, run_params): # type: ignore
|
|
OpRunBinaryNumpy.__init__(self, np.subtract, onnx_node, run_params)
|