- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 69 for quantized_type (0.18 sec)
-
tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc
// storage type is not supported. Type qbarrierResultType = qbarrier.getResult().getType(); QuantizedType quantizedElementType = QuantizedType::getQuantizedElementType(qbarrierResultType); if (!quantizedElementType) { return failure(); } if (!QuantizedType::castToStorageType(qbarrierResultType)) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
if (const auto q_type = quant::QuantizedType::getQuantizedElementType(tensor_type)) { Type converted_type; return dyn_cast_or_null<ElementsAttr>( quantfork::quantizeAttr(real_value, q_type, converted_type)); } return {}; } quant::QuantizedType DownCastScale(QuantizedType type, double min, double max, Location loc) {
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/quantization/device_target.cc
f32_ = FloatType::getF32(ctx_); i8_ = IntegerType::get(ctx_, k8Bits); i8_min_ = QuantizedType::getDefaultMinimumForInteger(kSigned, k8Bits); i8_max_ = QuantizedType::getDefaultMaximumForInteger(kSigned, k8Bits); i32_ = IntegerType::get(ctx_, k32Bits); i32_min_ = QuantizedType::getDefaultMinimumForInteger(kSigned, k32Bits); i32_max_ = QuantizedType::getDefaultMaximumForInteger(kSigned, k32Bits); any_ = 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/tfr/passes/rewrite_quantized_io.cc
if (!returned_type || !returned_type.getElementType().isa<quant::QuantizedType>()) { continue; } if (auto returned_op = returned_value.get().getDefiningOp<TFR::CastOp>()) { auto new_type = returned_type.clone(returned_type.getElementType() .cast<quant::QuantizedType>() .getStorageType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc
if (ele_type.isIntOrFloat()) { bit_width = ele_type.getIntOrFloatBitWidth(); is_signed = ele_type.isSignlessIntOrFloat() || ele_type.isSignedInteger(); } else if (QuantizedType qtype = mlir::dyn_cast<QuantizedType>(ele_type)) { bit_width = qtype.getStorageTypeIntegralWidth(); is_signed = qtype.isSigned(); } else { return input_type; } Type new_storage_type; if (is_signed) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 54.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
inline constexpr double kNearZeroTolerance = 1.0e-6; using QuantParams = QuantizedType; using QuantSpec = QuantizationSpecs; using SignedInteger = std::pair<unsigned, unsigned>; // bitwidth and sign using QuantParamsForResults = llvm::SmallVector<QuantizedType, 4>; using AccumulatorScaleFunc = std::function<QuantizedType(const std::vector<QuantizedType>&, int, bool)>; using BiasParamsMap =
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/quantization/tensorflow/passes/post_quantize.cc
private: LogicalResult matchAndRewrite(quantfork::StorageCastOp scast_op, PatternRewriter& rewriter) const override { if (QuantizedType::getQuantizedElementType(scast_op.getArg().getType()) || QuantizedType::getQuantizedElementType(scast_op.getType())) { return failure(); } scast_op.replaceAllUsesWith(scast_op.getArg()); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h
namespace TFL { bool IsQuantized(const tflite::TensorT& tensor); absl::StatusOr<mlir::quant::QuantizedType> GetQuantizedType( const tflite::TensorT& tensor, mlir::Builder builder, bool is_constant = false, mlir::Type storage_type = {}); // Imports float tensor with calibration value into calibrated quantized type. absl::StatusOr<mlir::quant::QuantizedType> GetCalibratedQuantizedType( const tflite::TensorT& tensor, mlir::Builder builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 2.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc
// expressed type, or a primitive type which is as same as the // (element type of) the expressed type. if (auto quantizedType = mlir::dyn_cast<QuantizedType>(spec)) return quantizedType.isCompatibleExpressedType(expressed); if (auto tensorType = mlir::dyn_cast<TensorType>(expressed)) return spec == tensorType.getElementType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc
// expressed type, or a primitive type which is as same as the // (element type of) the expressed type. if (auto quantizedType = mlir::dyn_cast<QuantizedType>(spec)) return quantizedType.isCompatibleExpressedType(expressed); if (auto tensorType = mlir::dyn_cast<TensorType>(expressed)) return spec == tensorType.getElementType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0)