Home
last modified time | relevance | path

Searched refs:is_quantized (Results 1 – 16 of 16) 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.cc107 return is_quantized<T>::value; in GetQuantized()
/external/tensorflow/tensorflow/lite/kernels/
Dfully_connected.cc72 const bool is_quantized = in CheckTypes() local
74 const bool is_hybrid = is_quantized && (input->type == kTfLiteFloat32); in CheckTypes()
76 is_quantized && (params->weights_format == in CheckTypes()
84 if (is_quantized) { in CheckTypes()
260 const bool is_quantized = in Prepare() local
262 const bool is_hybrid = is_quantized && (input->type == kTfLiteFloat32); in Prepare()
Dtest_util.h437 bool is_quantized = (t.min != 0 || t.max != 0 || t.scale != 0); variable
441 if (is_quantized) {
Dconv.cc171 const bool is_quantized = in IsIm2ColRequired() local
189 if (is_hybrid_non_dilated || is_quantized || in IsIm2ColRequired()
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.-d-type.pbtxt39 name: "is_quantized"
Dtensorflow.dtypes.-d-type.pbtxt39 name: "is_quantized"
/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/compiler/tests/
Dxla_test.py103 dtype for dtype in self._all_tf_types if dtype.is_quantized)
111 if not dtype.is_quantized)
/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/python/framework/
Dtensor_util.py318 elif dtype.is_quantized:
422 is_quantized = (
456 not is_quantized):
480 if is_quantized:
Ddtypes.py116 if (self.is_quantized or
140 if (self.is_quantized or
Ddtypes_test.py246 if (dtype.is_quantized or dtype.base_dtype == dtypes.bool or
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate.cc620 TfLiteStatus AddSingleValueConstantTensor(float value, bool is_quantized) { in AddSingleValueConstantTensor() argument
621 if (!is_quantized) { in AddSingleValueConstantTensor()
664 bool is_quantized = false; in AddHardSwish() local
667 is_quantized = true; in AddHardSwish()
680 if (is_quantized) { in AddHardSwish()
691 AddSingleValueConstantTensor(value3f, is_quantized)); in AddHardSwish()
714 AddSingleValueConstantTensor(value2f, is_quantized)); in AddHardSwish()
735 if (is_quantized) { in AddHardSwish()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dconstant_folding.cc2772 bool is_quantized = IsQuantizedMatMul(*node); in SimplifyArithmeticOperations() local
2775 if (is_quantized && graph_modified_) { in SimplifyArithmeticOperations()