Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for SubstituteRankedTensorTypeDimSize (0.48 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    // Returns a RankedTensorType which is similar to `input_type` but replaces the
    // dimension size of `dim` with `dim_size`.  For example,
    // `SubstituteRankedTensorTypeDimSize(tensor<3x4xi32>, 1, 2)` returns
    // `tensor<3x2xi32>`.
    static RankedTensorType SubstituteRankedTensorTypeDimSize(
        RankedTensorType input_type, int64_t dim, int64_t dim_size) {
      auto shape = input_type.getShape().vec();
      shape[dim] = dim_size;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top