Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 323 for quantized (0.27 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_ops_to_mhlo.cc

        return success();
      }
    };
    
    // UniformDequantizeOp takes TF quantized types as input which would have been
    // converted to the mhlo quantized types. Use OpConversionPattern in order to
    // retrieve the operand type *after* conversion, using OpAdaptor operand
    // accessor.
    // Same for other Uniform Quant Ops that take TF quantized types as input.
    class ConvertUniformDequantizeOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 30.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

            per_axis_type.getStorageTypeMin(), per_axis_type.getStorageTypeMax());
      }
    
      auto quantize = builder.create<quantfork::QuantizeCastOp>(
          q_op.getLoc(), new_value_type.clone(new_qtype), new_value);
      auto dequantize = builder.create<quantfork::DequantizeCastOp>(
          dq_op.getLoc(), new_value_type, quantize.getResult());
      return dequantize.getResult();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/nchw_convolution_to_nhwc.mlir

    }
    
    // CHECK-NOT: stablehlo.transpose
    // CHECK: %[[CONV:.+]] = stablehlo.convolution
    // CHECK-SAME{LITERAL}: [b, f, 0, 1]x[o, i, 0, 1]->[b, 0, 1, f]
    // CHECK-NOT: stablehlo.transpose
    
    // -----
    
    // Tests that a quantized convolution does not match. No conversion occurs.
    
    // CHECK-LABEL: quantized_convolution
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 25 23:00:47 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/cpu_hardware.cc

    // This basically assumes pure load/store. This is just fake data.
    constexpr float kCPUCopyUnitCost = 0.5;
    
    // Default values.
    constexpr float kCPUDefaultFixedValuedCost = 10000.0;
    
    // Quantized inference cost efficiency.
    // For CPU, quantized inference is ~3x faster than the float alternative, this
    // is just an estimation.
    constexpr float kQuantizedInferenceEfficiency = 0.3;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/passes.h

                                    RewritePatternSet* patterns);
    
    // Populates TF to MHLO legalization for some of the quantization ops.
    //
    // TODO(hinsu): Remove this once we combine quantized and non quantized op
    // legalization in the ODML conversion pipeline.
    void PopulateLegalizeTfQuantizationPatterns(MLIRContext* context,
                                                RewritePatternSet* patterns);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/stablehlo/utils/math_utils.h

    #include "mlir/Support/LogicalResult.h"  // from @llvm-project
    
    namespace mlir::quant::stablehlo {
    
    // Decomposes a given floating point value num into a normalized and quantized
    // fraction and an integral power of two.
    LogicalResult QuantizeMultiplier(double double_multiplier,
                                     int32_t& quantized_fraction, int32_t& shift);
    
    }  // namespace mlir::quant::stablehlo
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 18 07:43:59 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/stablehlo/cc/pass_pipeline.cc

      AddShapeLegalizationPasses(pm);
      pm.addNestedPass<func::FuncOp>(
          CreateConvertCustomAggregationOpToQuantStatsPass());
      pm.addPass(createQuantizeCompositeFunctionsPass(options));
      // Add an inliner pass to inline quantized StableHLO functions.
      pm.addPass(createInlinerPass());
      if (pipeline_config.unpack_quantized_types()) {
        AddStablehloQuantToIntPasses(pm);
      }
    }
    
    void AddWeightOnlyQuantizationPasses(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 10 04:07:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top