Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for reshape_input (0.16 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        if (!reshape_op) return failure();
    
        // Check if the last dimension does not change after reshape.
        auto reshape_input = reshape_op.getInput();
        auto reshape_input_ty = mlir::dyn_cast<ShapedType>(reshape_input.getType());
        if (!reshape_input_ty.hasStaticShape() || input_ty.getRank() == 0 ||
            reshape_input_ty.getRank() == 0 ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

      const int64_t flat_size = input_type.getNumElements();
      const int64_t width = flat_size / depth;
      SmallVector<int64_t, 4> input_new_shape({1, 1, width, depth});
      auto reshaped_input =
          InsertReshapeOp(fc_op.getLoc(), input, input_type.getElementType(),
                          input_new_shape, &rewriter);
    
      // Insert a reshape after the weight.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

                         Type element_type) {
      Value shape_cst = BuildIntArrayConstOp(builder, rewriter, shape, idx_type);
      Value reshaped_input = builder.create<TF::ReshapeOp>(
          RankedTensorType::get(shape, element_type), input, shape_cst);
      return reshaped_input;
    }
    
    // Create a tensor which is equal to input[begin: begin + size].
    Value BuildSliceOp(ImplicitLocOpBuilder& builder,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        Value zero_matrix = rewriter.create<BroadcastOp>(
            op.getLoc(), reshaped_input.getType(), zero,
            GetI64ElementsAttr({new_size, new_size}, &rewriter));
        Value masked =
            rewriter.create<SelectOp>(op.getLoc(), reshaped_input.getType(),
                                      compare, reshaped_input, zero_matrix);
        auto reduce = rewriter.create<ReduceOp>(op.getLoc(), masked, zero,
    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