Merge pull request #26229 from Intel-tensorflow:requantize_support_int8
PiperOrigin-RevId: 239448231
This commit is contained in:
commit
d6de125302
@ -18,7 +18,6 @@ limitations under the License.
|
||||
#define EIGEN_USE_THREADS
|
||||
|
||||
#include <math.h>
|
||||
|
||||
#include "third_party/eigen3/unsupported/Eigen/CXX11/Tensor"
|
||||
#include "tensorflow/core/framework/op.h"
|
||||
#include "tensorflow/core/framework/op_kernel.h"
|
||||
@ -100,4 +99,10 @@ REGISTER_KERNEL_BUILDER(Name("Requantize")
|
||||
.TypeConstraint<quint8>("out_type"),
|
||||
RequantizeOp<qint32, quint8>);
|
||||
|
||||
REGISTER_KERNEL_BUILDER(Name("Requantize")
|
||||
.Device(DEVICE_CPU)
|
||||
.TypeConstraint<qint32>("Tinput")
|
||||
.TypeConstraint<qint8>("out_type"),
|
||||
RequantizeOp<qint32, qint8>);
|
||||
|
||||
} // namespace tensorflow
|
||||
|
Loading…
x
Reference in New Issue
Block a user