- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 69 for quantized_type (0.3 sec)
-
tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc
const bool is_weight_buffer = is_constant && (bitwidth == 8); int64_t storage_min = QuantizedType::getDefaultMinimumForInteger(is_signed, bitwidth) + static_cast<int>(is_weight_buffer); int64_t storage_max = QuantizedType::getDefaultMaximumForInteger(is_signed, bitwidth); uint32_t flags = is_signed ? mlir::quant::QuantizationFlags::FlagValue::Signed : 0;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 07 23:04:40 UTC 2024 - 16.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h
#include "mlir/IR/OpDefinition.h" // from @llvm-project #include "mlir/IR/Operation.h" // from @llvm-project #include "mlir/Support/LogicalResult.h" // from @llvm-project using QuantizedType = mlir::quant::QuantizedType; using UniformQuantizedType = mlir::quant::UniformQuantizedType; namespace mlir { namespace quant { // Verifies that the op satisfies the same operands and results scales
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 5.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
if (is_per_channel_quantization) { quant_type = mlir::dyn_cast<quant::QuantizedType>( quant::GetUniformQuantizedPerAxisTypeForWeight( attr, quant_dim, /*symmetric=*/true, bit_width, is_signed, is_narrow_range, is_legacy_float)); } else { quant_type = mlir::dyn_cast<quant::QuantizedType>( quant::GetUniformQuantizedTypeForWeight(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc
} if (type.getElementType().isa<QuantizedType>()) { has_quantized_types = true; } } } for (Value output : call_op.getOutput()) { if (auto type = output.getType().dyn_cast<TensorType>()) { if (type.getElementType().isa<FloatType>()) { return false; } if (type.getElementType().isa<QuantizedType>()) { has_quantized_types = true;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 23.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/attributes.mlir
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 00:18:59 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/quantization_config.proto
message StaticRangePtq { // Operand index -> QuantizedType mapping. Operands that are not specified // here will be quantized with best effort. map<int32, QuantizedType> input_quantized_types = 1; } message WeightOnlyPtq { // Operand index -> QuantizedType mapping. Operands that are not specified // here will be quantized with best effort. map<int32, QuantizedType> input_quantized_types = 1; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 14.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/post_quantize.cc
// adjustments and should be kept. Instead, move dequantize op before the // requantize op to remove the unnecessary requantize op. if (const QuantizedType qtype = QuantizedType::getQuantizedElementType(q.getArg().getType())) { rewriter.setInsertionPoint(op); rewriter.replaceOpWithNewOp<quantfork::DequantizeCastOp>( op, op.getResult().getType(), q.getArg());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_op_order.cc
passthrough_op->replaceAllUsesWith(dequantize_op); // Set the input type of the passthrough op and pull it up. Type new_output_type; if (mlir::isa<quant::QuantizedType>(input_element_type)) { new_output_type = QuantizedType::getQuantizedElementType( dequantize_op.getInput().getType()) .castFromExpressedType(output_type); } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc
EXPECT_TRUE(isa<quant::QuantizedType>(state.params)); } for (const auto& result : quantization_driver.GetResultStates()) { Operation* op = result.first.first; const int res_index = result.first.second; const QuantState state = quantization_driver.GetResultQuantState(op, res_index); EXPECT_TRUE(isa<quant::QuantizedType>(state.params)); } }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc
op->getLoc(), *output_type, op.getInput()); rewriter.replaceOpWithNewOp<mhlo::BitcastConvertOp>( op, output_type->clone( mlir::dyn_cast<quant::QuantizedType>(output_type->getElementType()) .getStorageType()), result); return success(); } }; // UniformDequantizeOp takes TF quantized types as input which would have been
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 30.9K bytes - Viewed (0)