Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ExtractMinMaxFromAttr (0.39 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

      }
      if (!qtype) return {};
      const Type final_type = qtype.castFromExpressedType(target);
      if (!final_type) return {};
      return TypeAttr::get(final_type);
    }
    
    void ExtractMinMaxFromAttr(const DenseFPElementsAttr values, const int dim_size,
                               const int slice_size, bool symmetric,
                               SmallVectorImpl<double>& mins,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_helper.h

          SmallVector<double, 4> maxs(1, std::numeric_limits<double>::min());
          // Computes the effective min/max values of the attribute values.
          quant::ExtractMinMaxFromAttr(attr, /*dim_size=*/1, /*slice_size=*/1,
                                       /*symmetric=*/true, mins, maxs);
          double scale = maxs[0] / -llvm::minIntN(tensor_property.number_of_bits);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:01:23 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

    // `dim_size` is number of channels and `slice_size` is the size of slice per
    // each channel. When `symmetric` is true, the range is expanded to [-M, M].
    void ExtractMinMaxFromAttr(DenseFPElementsAttr values, int dim_size,
                               int slice_size, bool symmetric,
                               SmallVectorImpl<double>& mins,
                               SmallVectorImpl<double>& maxs);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top