Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 291 for Quantized (3.28 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.h

    limitations under the License.
    ==============================================================================*/
    // This header file defines common utils used when transforming TF ops to
    // Uniform Quantized ops.
    
    #ifndef TENSORFLOW_COMPILER_MLIR_QUANTIZATION_TENSORFLOW_UTILS_TF_TO_UNIFORM_ATTRIBUTE_UTILS_H_
    #define TENSORFLOW_COMPILER_MLIR_QUANTIZATION_TENSORFLOW_UTILS_TF_TO_UNIFORM_ATTRIBUTE_UTILS_H_
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.h

    absl::StatusOr<mlir::quant::QuantizedType> GetQuantizedType(
        const tflite::TensorT& tensor, mlir::Builder builder,
        bool is_constant = false, mlir::Type storage_type = {});
    
    // Imports float tensor with calibration value into calibrated quantized type.
    absl::StatusOr<mlir::quant::QuantizedType> GetCalibratedQuantizedType(
        const tflite::TensorT& tensor, mlir::Builder builder);
    
    absl::StatusOr<mlir::TensorType> GetTensorType(const tflite::TensorT& tensor,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/passes.td

        "quantfork::QuantizationForkDialect"
      ];
      let options = [
          ListOption<"quantize_allowlist_", "quantize-allowlist", "std::string",
                     "comma separated list of allowlisted functions to be quantized. Only used in tests">,
          Option<"quantize_signed_", "quantize-signed", "bool", "false",
                 "signed inference type. Only used in tests">,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

    class UsedBy<string op> : Constraint<
      CPred<"llvm::isa<mlir::TFL::" # op # "Op>(*$0.getUsers().begin())">>;
    
    // When the op is passing-through, the output types of the quantized ops need
    // to be updated as well. Since the quantize op manages its own type by the
    // "qtype" attribute, we should update the type shape in this attribute.
    def ReorderTransposeDequantQuant :
          Pat<(TF_TransposeOp:$old_value
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.cc

      quantized_fraction = static_cast<int32_t>(std::round(fraction * (1L << 15)));
      // Clip extreme values.  These are more than enough to overflow int8, the
      // storage type for quantized values, and the final values will be clamped
      // no matter what.
      if (quantized_fraction == (1L << 15)) {
        quantized_fraction /= 2;
        ++shift;
      }
      if (shift < -15) {
        shift = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 08:32:43 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights.h

    // Stores information about how to quantize a user-specified custom operation.
    // CustomOpInfo contains info of its corresponding CustomOp registered in the
    // CustomOpMap. 'quantizable_input_indices' is used to determine which indices
    // of the CustomOp are quantizable. 'is_weight_only' is used specify whether the
    // custom op is quantized only for storage and dequantized at runtime.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/cc/report.h

    namespace mlir::quant::stablehlo {
    
    // A class that manages information about `QuantizableUnit`s post-quantization,
    // internally in the form of `QuantizationUnits`. It is used to collect
    // quantization summary from a quantized `ModuleOp` and emit it in a human- and
    // machine-readable format.
    class QuantizationReport {
     public:
      QuantizationReport() = default;
    
      // Initializes `QuantizationReport` by collecting `QuantizationResults` from
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 10:10:34 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/tests/rewrite_quantized_io.mlir

    // RUN: tfr-opt %s -tfr-decompose -tfr-rewrite-quantized-io -verify-diagnostics | FileCheck %s
    
    // CHECK-LABEL: @tf__my_requantize
    tfr.func @tf__my_requantize(%input: !tfr.tensor) -> !tfr.tensor {
      %raw_data = tfr.quant_raw_data(%input) : (!tfr.tensor) -> !tfr.tensor
      %scale, %zp = tfr.quant_qparam(%input) : (!tfr.tensor) -> (!tfr.tensor, !tfr.tensor)
      %result = tfr.call @tf__requantize(%raw_data, %scale, %zp) : (!tfr.tensor, !tfr.tensor, !tfr.tensor) -> !tfr.tensor
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/stablehlo_quantizer_odml_oss.ipynb

          "metadata": {
            "id": "cqeGmbO6PPNd"
          },
          "source": [
            "This example shows a JAX Keras reference model converted into a StableHLO module and via `jax2tf`, then quantized in the ODML Converter via the StableHLO Quantizer.\n",
            "\n",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 12 03:40:43 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_dump_tensor_op.cc

    constexpr StringRef kCompositeFuncPrefix = "composite_";
    constexpr StringRef kEmptyNodeName = "_empty_node";
    
    // Returns a pair: `func_name` and `node_name` for the lifted function. In TF
    // quantizer, both are filled. For StableHLO quantizer, the func_name is only
    // filled and node_name is always set to "_empty_node".
    std::pair<std::string, std::string> GetFuncNameAndNodeName(
        TF::PartitionedCallOp call_op, const FlatSymbolRefAttr &f_attr) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 13K bytes
    - Viewed (0)
Back to top