Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for AccumulatorUniformScale (0.3 sec)

  1. tensorflow/compiler/mlir/lite/quantization/tools/op_quant_spec_getters_gen.cc

    // TableGenMain.
    // NOLINTNEXTLINE
    static bool OpQuantSpecWriter(raw_ostream &os, RecordKeeper &records) {
      llvm::Regex acc_uniform_trait_regex{"AccumulatorUniformScale<([0-9]*),"};
      llvm::Regex coeff_index_trait_regex{"AffineOpCoefficient<(-?[0-9]*),"};
      llvm::Regex fixed_uniform_trait_regex{
          "FixedResultUniformScale<([0-9]+).*(true|false)>"};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 11:18:44 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_traits.h

    //
    // TODO(fengliuai): supports a configurable accumulator bit width.
    template <int Bias, int... Operands>
    class AccumulatorUniformScale {
     public:
      template <typename ConcreteType>
      class Impl
          : public QuantizationSpecTraitBase<
                ConcreteType, AccumulatorUniformScale<Bias, Operands...>::Impl> {
       public:
        // Whether the index-th operand is a bias.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

    // Specify this trait if the bias-th input of the op is a bias input, which
    // needs a scale based on the scales of op1 and op2.
    class AccumulatorUniformScale<int bias, int op1, int op2> : NativeOpTrait<
      !strconcat("quant::AccumulatorUniformScale<",
                 !interleave([bias, op1, op2], ", "),
                 ">::Impl")>;
    
    // Specify the operand index of the coefficient operand for an affine op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      string customOption = ?;
    }
    
    class TFL_ConvOp<string mnemonic, string opSummary, int index,
                     list<Trait> additional_traits = []> :
        TFL_Op<mnemonic,[Pure,
                         AccumulatorUniformScale<2, 0, 1>,
                         AffineQuantizedOpInterface,
                         AffineOpCoefficient<index, 1>,
                         QuantizableResult,
                         TFL_SparseOp] # additional_traits> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top