- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 69 for quantized_type (0.21 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_test.cc
const UniformQuantizedType quantized_type = CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_, /*scale=*/1.0, /*zero_point=*/0); EXPECT_TRUE(quantized_type.getExpressedType().isF32()); } TEST_F(CreateI8F32UniformQuantizedTypeTest, SignedQuantizedTypeSucceeds) { const UniformQuantizedType quantized_type = CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_,
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/stablehlo/passes/insert_weight_param.cc
TF::XlaCallModuleOp op) { const QuantizedType& quantized_type = weight_only_ptq.input_quantized_types().at(1); if (quantized_type.dimension_specs().has_dimension()) { return quantized_type.dimension_specs().dimension(); } return GetDefaultQuantizationDimension(op); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
operand_states[{op, index}] = cached->second; } return; } const QuantizedType quantized_type = QuantizedType::getQuantizedElementType(value.getType()); const bool immutable = quantized_type != nullptr; const QuantizationDriver::QuantStateIndex next_state_index = states.size(); states.push_back({quantized_type, immutable}); if (as_result) { result_states[{op, index}] = next_state_index; } else {
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_driver.h
// Inserts the Quantize and Dequantize ops after `arg`. The quantized element // type for `arg` is `quantized_type`. void QuantizeArg(BlockArgument arg, QuantizedType quantized_type); // Inserts the Quantize and Dequantize ops (i.e. QDQ) after `value`. The // quantized element type for `value` is `quantized_type`. void QuantizeValue(Value value, QuantizedType quantized_type, Location loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 20 11:42:17 UTC 2024 - 16.8K 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/stablehlo/cc/config_test.cc
EXPECT_THAT(weight_only_ptq_spec.input_quantized_types(), UnorderedElementsAre(Pair( 1, Truly([](const auto& quantized_type) { return quantized_type.has_dimension_specs() && !quantized_type.dimension_specs().has_dimension(); })))); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 06:59:34 UTC 2024 - 12K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc
QuantizedType quant_type) { DenseFPElementsAttr attr; if (!matchPattern(op->getResult(0), m_Constant(&attr))) { return nullptr; } Type expressed_type = op.getResult().getType(); Type quantized_type = quant_type.castFromExpressedType(expressed_type); ShapedType shaped_quantized_type = mlir::cast<ShapedType>(quantized_type); DenseElementsAttr tensor_proto_attr =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11K bytes - Viewed (0)