- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for GetQuantizedInferenceType (0.21 sec)
-
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.cc
#include "tensorflow/core/framework/types.pb.h" namespace mlir { namespace TFL { double PowerOfTwoBound(double value) { return std::pow(2, std::ceil(std::log2(value))); } tensorflow::DataType GetQuantizedInferenceType(bool is_signed, int number_of_bits) { if (is_signed && number_of_bits == 8) { return tensorflow::DT_QINT8; } else if (!is_signed && number_of_bits == 8) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Feb 03 12:08:30 UTC 2023 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
func::FuncOp func = getOperation(); MLIRContext* ctx = func.getContext(); ScopedTFLQuantOpsToMlirQuantOpsConverter converter(func); if (use_quantization_flags_) { quant_specs_.inference_type = GetQuantizedInferenceType( this->quantize_signed_, this->activation_number_of_bits_); if (quant_specs_.inference_type == tensorflow::DT_INVALID) { func.emitError() << "prepare-quantize pass failed: unsupported "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h
"effective_hidden_scale_intermediate"}; // Calculates the minimum power of two that is not less than the value. double PowerOfTwoBound(double value); tensorflow::DataType GetQuantizedInferenceType(bool is_signed, int activation_number_of_bits); // Returns the element type of LSTM's intermediate tensor designated by the // index. 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)