- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for getStorageTypeMin (0.24 sec)
-
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc
const UniformQuantizedType quantized_type = CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_, /*scale=*/1.0, /*zero_point=*/0); EXPECT_EQ(quantized_type.getStorageTypeMin(), -128); EXPECT_EQ(quantized_type.getStorageTypeMax(), 127); } TEST_F(CreateI8F32UniformQuantizedTypeTest, StorageTypeMinMaxNarrowRange) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/device_target.cc
if (auto quant = spec.dyn_cast_or_null<UniformQuantizedType>()) { signature->push_back(AnyQuantizedType::get( quant.getFlags(), quant.getStorageType(), quant.getExpressedType(), quant.getStorageTypeMin(), quant.getStorageTypeMax())); } else if (auto any = spec.dyn_cast_or_null<AnyQuantizedType>()) { signature->push_back(any); } else { // float signature->push_back(AnyQuantizedType()); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
(type.getStorageTypeMax() - type.getStorageTypeMin()); if (type.getStorageTypeMax() != -type.getStorageTypeMin()) { // Only applies for asymmetric quantized range with original scale. const float zero_point_from_min = type.getStorageTypeMin() - mins[i] / scales[i]; if (zero_point_from_min < type.getStorageTypeMin()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
new_qtype = UniformQuantizedType::get( uniform_type.getFlags(), uniform_type.getStorageType(), uniform_type.getExpressedType(), new_scale, uniform_type.getZeroPoint(), uniform_type.getStorageTypeMin(), uniform_type.getStorageTypeMax()); } else { auto new_scales = MultiplyTwoArrays(multiplier_array, {uniform_type.getScale()});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h
: UniformQuantizedValueConverter( uniform_type.getScale(), static_cast<double>(uniform_type.getZeroPoint()), static_cast<double>(uniform_type.getStorageTypeMin()), static_cast<double>(uniform_type.getStorageTypeMax()), uniform_type.getStorageTypeIntegralWidth(), uniform_type.isSigned()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 9.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
op, bias_index, UniformQuantizedType::getChecked( bias_op->getLoc(), params.getFlags(), params.getStorageType(), params.getExpressedType(), new_bias_scale, 0, params.getStorageTypeMin(), params.getStorageTypeMax())); arith::ConstantOp filter_op = DuplicateConstantOpIfNeeded( op->getOperand(filter_index).getDefiningOp<arith::ConstantOp>(), op, filter_index); if (!filter_op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
new_qtype = quant::UniformQuantizedType::getChecked( op.getLoc(), flags, qtype.getStorageType(), qtype.getExpressedType(), uqtype.getScale(), uqtype.getZeroPoint() - offset, uqtype.getStorageTypeMin() - offset, uqtype.getStorageTypeMax() - offset); } else if (auto aqtype = qtype.template dyn_cast< quant::UniformQuantizedPerAxisType>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
return quant::UniformQuantizedType::get( qtype.getFlags(), qtype.getStorageType(), qtype.getExpressedType(), qtype.getScale() * scale, qtype.getZeroPoint(), qtype.getStorageTypeMin(), qtype.getStorageTypeMax()); } return {}; }; } // Returns quantization spec for LSTMs based on their operator properties. template <typename LstmOp>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 03 18:01:23 UTC 2024 - 28K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_import.cc
per_axis.getFlags(), per_axis.getStorageType(), per_axis.getExpressedType(), per_axis.getScales(), per_axis.getZeroPoints(), per_axis.getQuantizedDimension(), per_axis.getStorageTypeMin() - 1, per_axis.getStorageTypeMax()); } else if (auto per_tensor = qtype.dyn_cast<mlir::quant::UniformQuantizedType>()) { new_qtype = mlir::quant::UniformQuantizedType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 21 18:21:50 UTC 2024 - 66.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/ir/tfl_ops.cc
per_axis_qtype.getFlags(), per_axis_qtype.getStorageType(), per_axis_qtype.getExpressedType(), per_axis_qtype.getScales(), per_axis_qtype.getZeroPoints(), quantized_dimension, per_axis_qtype.getStorageTypeMin(), per_axis_qtype.getStorageTypeMax()); } TFL::TransposeOp::build( *builder, result, tensorflow::GetTypeFromTFTensorShape(output_shape, element_type), input, perm); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 09:41:17 UTC 2024 - 169.2K bytes - Viewed (0)