Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for getWindowDimensions (0.23 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

                           ctx, InvertPermutationToVector(*vals, transpose_perm))
                     : nullptr;
        };
        DenseI64ArrayAttr new_window_dimensions =
            getInvertPermutedAttr(reduce_op.getWindowDimensions());
        DenseI64ArrayAttr new_window_strides =
            getInvertPermutedAttr(reduce_op.getWindowStrides());
        DenseI64ArrayAttr new_base_dilations =
            getInvertPermutedAttr(reduce_op.getBaseDilations());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                                           uint64_t batch_dim,
                                           uint64_t channel_dim) {
        return rw.getWindowDimensions().getValues<int64_t>()[batch_dim] == 1 &&
               rw.getWindowDimensions().getValues<int64_t>()[channel_dim] == 1 &&
               (*window_strides)[batch_dim] == 1 &&
               (*window_strides)[channel_dim] == 1 && padding[2 * batch_dim] == 0 &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc

                op.getLoc(), new_result_type, transpose_op.getOperand(),
                /*init_value=*/op.getOperand(1),
                /*window_dimensions=*/
                PermuteI64ArrayAttr(rewriter, op.getWindowDimensions(),
                                    kNchwToNhwcPermutation),
                /*window_strides=*/
                PermuteI64ArrayAttr(rewriter, op.getWindowStrides(),
                                    kNchwToNhwcPermutation),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        if (failed(MatchBinaryReduceFunction(op.getBody()))) {
          return failure();
        }
    
        // Only 2d pooling is supported in TFLite.
        if (op.getWindowDimensions().size() != 4) {
          return failure();
        }
    
        // reduce_window op with dilations or padding will supported later.
        // TODO: b/321099943 - Support reduce_window op with dilations and padding.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

                                         "rank ("
                                      << size << " vs. " << input_rank << ")";
            }
          }
        }
        return success();
      };
    
      if (check(op.getWindowDimensions(), "window_dimensions").failed())
        return failure();
    
      if (check(op.getWindowStrides(), "window_strides").failed()) return failure();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      DenseElementsAttr window_dimensions, window_strides, base_dilations,
          window_dilations, padding;
      if (input_ty.hasStaticShape() &&
          matchPattern(op.getWindowDimensions(), m_Constant(&window_dimensions)) &&
          matchPattern(op.getWindowStrides(), m_Constant(&window_strides)) &&
          matchPattern(op.getBaseDilations(), m_Constant(&base_dilations)) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          reduce_window_op.getOperation()->getName().getStringRef().str();
      uint32_t opcode_index =
          GetOpcodeIndex(op_name, tflite::BuiltinOperator_STABLEHLO_REDUCE_WINDOW);
    
      auto wd = reduce_window_op.getWindowDimensions();
      auto window_dimensions =
          builder_.CreateVector(std::vector<int64_t>(wd.begin(), wd.end()));
      auto window_strides = builder_.CreateVector(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

                                    PatternRewriter &rewriter) const override {
        DenseElementsAttr window_dimensions, window_strides, base_dilations,
            window_dilations, padding;
        if (!(matchPattern(op.getWindowDimensions(),
                           m_Constant(&window_dimensions)) &&
              matchPattern(op.getWindowStrides(), m_Constant(&window_strides)) &&
              matchPattern(op.getBaseDilations(), m_Constant(&base_dilations)) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
Back to top