Home
last modified time | relevance | path

Searched refs:is_quantized (Results 1 – 18 of 18) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dtype_traits.h37 struct is_quantized : false_type {}; struct
41 struct is_quantized<qint8> : true_type {};
43 struct is_quantized<quint8> : true_type {};
45 struct is_quantized<qint32> : true_type {};
47 struct is_quantized<qint16> : true_type {};
49 struct is_quantized<quint16> : true_type {};
71 is_quantized<T>::value || std::is_same<T, bfloat16>::value;
Dtypes_test.cc106 return is_quantized<T>::value; in GetQuantized()
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.-d-type.pbtxt39 name: "is_quantized"
Dtensorflow.dtypes.-d-type.pbtxt39 name: "is_quantized"
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.dtypes.-d-type.pbtxt39 name: "is_quantized"
Dtensorflow.-d-type.pbtxt39 name: "is_quantized"
/external/tensorflow/tensorflow/lite/kernels/
Dfully_connected.cc133 const bool is_quantized = in CheckTypes() local
135 const bool is_hybrid = is_quantized && (input->type == kTfLiteFloat32); in CheckTypes()
137 is_quantized && (params->weights_format == in CheckTypes()
145 if (is_quantized) { in CheckTypes()
383 const bool is_quantized = in Prepare() local
385 const bool is_hybrid = is_quantized && (input->type == kTfLiteFloat32); in Prepare()
Dtest_util.h636 bool is_quantized = (t.min != 0 || t.max != 0 || t.scale != 0); variable
640 if (is_quantized) {
Dconv.cc184 const bool is_quantized = in IsIm2ColRequired() local
202 if (is_hybrid_non_dilated || is_quantized || in IsIm2ColRequired()
/external/tensorflow/tensorflow/lite/examples/ios/camera/
DCameraExampleViewController.mm312 bool is_quantized;
315 is_quantized = false;
318 is_quantized = true;
325 if (is_quantized) {
357 if (is_quantized) {
/external/tensorflow/tensorflow/compiler/tests/
Dxla_test.py115 dtype for dtype in self._all_tf_types if dtype.is_quantized)
123 if not dtype.is_quantized)
/external/tensorflow/tensorflow/python/framework/
Dtensor_util.py324 elif dtype.is_quantized:
428 is_quantized = (
462 not is_quantized):
486 if is_quantized:
Ddtypes.py116 if (self.is_quantized or
140 if (self.is_quantized or
Ddtypes_test.py254 if (dtype.is_quantized or dtype.base_dtype == dtypes.bool or
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc827 TfLiteStatus AddSingleValueConstantTensor(float value, bool is_quantized) { in AddSingleValueConstantTensor() argument
828 if (!is_quantized) { in AddSingleValueConstantTensor()
873 bool is_quantized = false; in TransformHardSwishIntoSupportedOps() local
876 is_quantized = true; in TransformHardSwishIntoSupportedOps()
889 if (is_quantized) { in TransformHardSwishIntoSupportedOps()
900 AddSingleValueConstantTensor(value3f, is_quantized)); in TransformHardSwishIntoSupportedOps()
924 AddSingleValueConstantTensor(value2f, is_quantized)); in TransformHardSwishIntoSupportedOps()
946 if (is_quantized) { in TransformHardSwishIntoSupportedOps()
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_common.cc2312 Type reduce_element_type, bool is_quantized, double input_scale, in convertReduceOpCommon() argument
2332 if (is_quantized) { in convertReduceOpCommon()
2351 if (is_quantized) { in convertReduceOpCommon()
/external/tensorflow/tensorflow/python/ops/
Darray_ops.py2950 elif dtype.is_quantized:
3203 elif dtype.is_quantized:
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc3011 bool is_quantized = IsQuantizedMatMul(*node); in SimplifyArithmeticOperations() local
3014 if (is_quantized && graph_modified_) { in SimplifyArithmeticOperations()