diff options
author | Young Jin Kim <youki@microsoft.com> | 2019-06-26 07:11:20 +0300 |
---|---|---|
committer | Young Jin Kim <youki@microsoft.com> | 2019-06-26 07:11:20 +0300 |
commit | 2672b085d700887d3db0bbbdfe6ee2e86e7b39e9 (patch) | |
tree | fac0bbf2c5841ec31a21232a99bde2420c26af35 /src/graph | |
parent | e176508a6be21ff65769dd4a50acffb77e89be3f (diff) |
Cleaning the code.
Diffstat (limited to 'src/graph')
-rwxr-xr-x | src/graph/expression_operators.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/graph/expression_operators.cpp b/src/graph/expression_operators.cpp index 01b262a9..56fb654a 100755 --- a/src/graph/expression_operators.cpp +++ b/src/graph/expression_operators.cpp @@ -388,7 +388,7 @@ Expr dot(Expr a, Expr b, bool transA, bool transB, float scale) { // Currently only true when command line options // --optimize --cpu-thread=N with N > 0 are set. if(a->graph()->getBackend()->isOptimized() && device == DeviceType::cpu - && a->graph()->getBackend()->getGemmType() == GemmType::IntrinsicInt16) { + && a->graph()->getBackend()->getGemmType() == GemmType::IntrinInt16) { // dotInt16 computes A * B.T, hence the transpose for B to get A * B // if transA = false and transB = false. @@ -509,7 +509,7 @@ Expr affine(Expr a, Expr b, Expr bias, bool transA, bool transB, float scale) { return tuner->run(); } else { - if(gemmType == GemmType::IntrinsicInt16) { + if(gemmType == GemmType::IntrinInt16) { // cpu int16 version return cpu::int16::affine( cpu::int16::quantize(transA ? transpose(a) : a, clipValue), @@ -531,12 +531,6 @@ Expr affine(Expr a, Expr b, Expr bias, bool transA, bool transB, float scale) { transA, transB, scale); - // cpu int16 version - // return cpu::int16::affine( - // cpu::int16::quantize(transA ? transpose(a) : a, clipValue), - // cpu::int16::quantize(transB ? b : transpose(b), clipValue), - // bias, - // scale); } else { int rows = a->shape().elements() / a->shape()[-1]; Expr ones = a->graph()->ones({rows, 1}); |