Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for GetChannelDimIndex (0.23 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization.td

          [{Returns quantization dim for the affine operand.}],
          "int", "GetQuantizationDimIndex",
          (ins)>,
        InterfaceMethod<
          [{Returns the dimension index of the output channels.}],
          "int", "GetChannelDimIndex", (ins)
        >,
      ];
    }
    
    def SameOperandsAndResultsScale : OpInterface<"SameScalesOpInterface"> {
      let description = [{
        Interface for ops potentially have same operands and results scales.
      }];
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      let results = (outs TFL_TensorOf<[F32, QI8, QUI8, QI16]>:$output);
    
      let hasOptions = 1;
    
      let hasVerifier = 1;
    
      let extraClassDeclaration = [{
        // AffineQuantizedOpInterface:
        int GetChannelDimIndex() { return 0; }
        int GetQuantizationDimIndex() { return 0; }
        // SparseOpInterface:
        std::vector<int> GetSparseOperands() { return {1}; }
        std::vector<std::vector<int>> GetFloatBlockSize() { return {}; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                op->getResult(0).getType().cast<TensorType>().getShape();
            const SmallVector<int64_t, 1> bias_shape = {
                output_shape[output_shape.size() - 1]};
            // `tfl.fully_connected`'s `GetChannelDimIndex` is 0.
            const auto bias_quantized_type =
                CreateI32F32UniformQuantizedPerAxisType(
                    op->getLoc(), *op->getContext(), std::move(bias_scales),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/optimize.cc

          ArrayRef<int64_t> filter_shape, AffineOpType op) {
        // Channel dimension index is specified as op property
        auto channel_index_iter = filter_shape.begin();
        std::advance(channel_index_iter, op.GetChannelDimIndex());
        // The slide size is the size of the data in higher dimensions.
        int64_t slice_size =
            std::accumulate(std::next(channel_index_iter), filter_shape.end(), 1,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top