Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 69 for quantized_type (0.44 sec)

  1. tensorflow/compiler/mlir/lite/tf_to_tfl_flatbuffer.cc

      const ::tflite::Model* input_model = ::tflite::GetModel(buffer);
    
      ::tflite::optimize::BufferType quantized_type;
      switch (quant_specs.inference_type) {
        case DT_QINT8:
          quantized_type = ::tflite::optimize::BufferType::QUANTIZED_INT8;
          break;
        case DT_HALF:
          quantized_type = ::tflite::optimize::BufferType::QUANTIZED_FLOAT16;
          break;
        default:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

          return;
        }
    
        TensorType old_result_type =
            mlir::dyn_cast<TensorType>(op.getResult().getType());
        const FloatType quantized_type = FloatType::getF16(op.getContext());
        const ShapedType new_result_type = old_result_type.clone(quantized_type);
    
        // Insert ConvertOp if it does not exist yet. Otherwise, just rewire without
        // creating a ConvertOp.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

          return;
        }
    
        // Get types
        TensorType old_result_type =
            mlir::dyn_cast<TensorType>(op.getResult().getType());
        FloatType quantized_type = FloatType::getF16(op.getContext());
        ShapedType new_result_type = old_result_type.clone(quantized_type);
    
        // Insert CastOp if it does not exist yet. Otherwise, just rewire without
        // creating a CastOp.
        for (auto& connected_op : op.getResult().getUses()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

             !quantized_type.isSigned();
    }
    
    // Return true when the given element_type is QI16.
    bool IsQI16Type(Type element_type) {
      auto quantized_type = element_type.dyn_cast<QuantizedType>();
      return quantized_type != nullptr &&
             quantized_type.getStorageTypeIntegralWidth() == 16 &&
             quantized_type.isSigned();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/mlir/lite/transforms/post_quantize.cc

        auto arg = bb.getArgument(0);
    
        auto remove_quantize_op = [&](QuantizeOp quantize_op) {
          auto quantize_output = quantize_op.getOutput();
          auto quantize_type = quantize_output.getType();
          input_types.push_back(quantize_type);
          auto new_arg = bb.addArgument(quantize_type, loc);
          quantize_output.replaceAllUsesWith(new_arg);
          quantize_op.erase();
          arg.dropAllUses();
          bb.eraseArgument(0);
        };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top