- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for getZeroPoint (0.74 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
auto qtype = mlir::cast<TensorType>(dq_op.getArg().getType()).getElementType(); if (auto uniform_type = llvm::dyn_cast_or_null<UniformQuantizedType>(qtype)) { return uniform_type.getZeroPoint() == 0; } else if (auto per_axis_type = llvm::dyn_cast_or_null<UniformQuantizedPerAxisType>(qtype)) { return absl::c_all_of(per_axis_type.getZeroPoints(),
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/uniform_quantized_types_test.cc
CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_, /*scale=*/8.0, /*zero_point=*/99); EXPECT_EQ(quantized_type.getScale(), 8.0); EXPECT_EQ(quantized_type.getZeroPoint(), 99); } class CreateI32F32UniformQuantizedTypeTest : public Test { protected: CreateI32F32UniformQuantizedTypeTest() : ctx_() { ctx_.loadDialect<quant::QuantizationDialect>(); }
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/quantization/common/ir/UniformSupport.h
public: explicit UniformQuantizedValueConverter( quant::UniformQuantizedType uniform_type) : 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(),
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_utils.cc
}; if (auto q_type = dyn_cast<UniformQuantizedType>(type)) { const double scale = recalculate_scale(q_type.getScale()); const double zero_point = recalculate_zero_point(q_type.getZeroPoint()); return UniformQuantizedType::get(q_type.getFlags(), q_type.getStorageType(), q_type.getExpressedType(), scale, zero_point, qmin, qmax);
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/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/tfr/ir/tfr_ops.cc
rewriter.getF32FloatAttr(qtype.getScale())); zp_op = rewriter.create<TF::ConstOp>( loc, RankedTensorType::get({}, rewriter.getI32Type()), rewriter.getI32IntegerAttr(qtype.getZeroPoint())); } else if (auto qtype = cast_qtype.dyn_cast<quant::UniformQuantizedPerAxisType>()) { SmallVector<float> scales(qtype.getScales().begin(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K 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<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0)