- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 32 for quantized_type (0.27 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/common/utils.h
quantized_type.getStorageTypeIntegralWidth() == 8 && !quantized_type.isSigned(); } // Return true when the given element_type is QI32. inline bool IsQI32Type(Type t) { auto quantized_type = quant::QuantizedType::getQuantizedElementType(t); return quantized_type != nullptr && quantized_type.getStorageTypeIntegralWidth() == 32 && quantized_type.isSigned(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc
} bool IsStorageTypeI8(const QuantizedType quantized_type) { const Type storage_type = quantized_type.getStorageType(); return storage_type.isInteger(/*width=*/8); } bool IsStorageTypeI32(const QuantizedType quantized_type) { const Type storage_type = quantized_type.getStorageType(); return storage_type.isInteger(/*width=*/32); } bool IsExpressedTypeF32(const QuantizedType quantized_type) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h
Location loc, MLIRContext& context, ArrayRef<double> scales, ArrayRef<int64_t> zero_points, int quantization_dimension); bool IsStorageTypeI8(QuantizedType quantized_type); bool IsStorageTypeI32(QuantizedType quantized_type); bool IsExpressedTypeF32(QuantizedType quantized_type); // Given a value, extract the `ElementType`. // `value` should be a non-null `TensorType`. inline Type GetElementType(const Value value) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/ops/stablehlo_op_quant_spec.cc
// populate `coeff_op_quant_dim`. for (const auto& [operand_idx, quantized_type] : static_range_ptq_spec.input_quantized_types()) { if (quantized_type.has_dimension_specs()) { spec.coeff_op_quant_dim[operand_idx] = quantized_type.dimension_specs().dimension(); } } } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 7.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td
// operand's tensor types. def QI4 : QuantizedType<"Uniform", [4], 1>; def QUI8 : QuantizedType<"Uniform", [8], 0>; def QI8 : QuantizedType<"Uniform", [8], 1>; def QUI16 : QuantizedType<"Uniform", [16], 0>; def QI16 : QuantizedType<"Uniform", [16], 1>; def QUI32 : QuantizedType<"Uniform", [32], 0>; def QI32 : QuantizedType<"Uniform", [32], 1>; //===----------------------------------------------------------------------===//
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 8.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/decompose_hybrid_quantization.cc
allTypesFp &= !mlir::isa<quant::QuantizedType>(type.getElementType()); allTypesQuantizedOrInt &= (mlir::isa<quant::QuantizedType>(type.getElementType()) || mlir::isa<IntegerType>(type.getElementType())); } for (auto result : op->getResults()) { ShapedType type = mlir::cast<ShapedType>(result.getType()); allTypesFp &= !mlir::isa<quant::QuantizedType>(type.getElementType());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.cc
/// corresponding storage attribute (typically FloatAttr -> IntegerAttr). /// quantizedElementType is the QuantizedType that describes the expressed /// origValue. /// Returns a converter Attribute or nullptr if conversion is not possible. static Attribute convertPrimitiveValueAttr( Attribute origRealValue, quant::QuantizedType quantizedElementType, const UniformQuantizedValueConverter &converter, Type &outConvertedType) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertSimQuant.cc
} quant::QuantizedType elementType = static_cast<const ConcreteRewriteClass *>(this) ->convertFakeQuantAttrsToType(op, converter.expressed_type); if (!elementType) { // Note that the fakeQuantAttrsToType will have emitted the error. return true; } Type quantizedType = converter.convert(elementType); assert(quantizedType &&
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantizeUtils.h
class Attribute; class Type; namespace quant { class QuantizedType; class UniformQuantizedType; } // namespace quant namespace quantfork { class UniformQuantizedValueConverter; /// Converts an attribute from a type based on /// quantizedElementType.getExpressedType() to one based on /// quantizedElementType.getStorageType(), where quantizedElementType is as from /// QuantizedType::getQuantizedElementType().
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jul 29 18:55:28 UTC 2022 - 3.1K bytes - Viewed (0) -
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)