Skip to content

Commit

Permalink
lint and other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Valery Chernov committed Aug 19, 2021
1 parent a958cc8 commit b929e64
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 2 additions & 2 deletions python/tvm/relay/frontend/onnx.py
Original file line number Diff line number Diff line change
Expand Up @@ -3321,7 +3321,7 @@ def get_scalar(x, dtype="float32"):
y_scale = fold_constant(get_scalar(inputs[6]))
y_zero_point = get_scalar(inputs[7], "int32")

dtype = infer_type(a).checked_type.dtype
dtype = infer_type(a).dtype

## Onnxruntime doesn't actually do this op in integer, they dequantize to fp32
## and then requantize afer
Expand Down Expand Up @@ -3986,7 +3986,7 @@ class Celu(OnnxOpConverter):
@classmethod
def _impl_v12(cls, inputs, attr, params):
x = inputs[0]
dtype = infer_type(x).checked_type.dtype
dtype = infer_type(x).dtype
alpha = _op.const(attr.get("alpha", 1.0), dtype)
zero = _op.const(0, dtype)
one = _op.const(1, dtype)
Expand Down
2 changes: 0 additions & 2 deletions python/tvm/relay/frontend/pytorch.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@

import numpy as np
import tvm
from tvm.ir import IRModule
from tvm.topi.utils import get_const_tuple

from .. import analysis as _analysis
from .. import expr as _expr
from .. import function as _function
from .. import op as _op
from .. import qnn, transform
from ..expr_functor import ExprMutator
Expand Down

0 comments on commit b929e64

Please sign in to comment.