Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 463 for int64Ptr (0.49 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

        // Otherwise, output type has same rank as the input.
        return RankedTensorType::get(
            SmallVector<int64_t, 4>(rank, ShapedType::kDynamic), element_ty);
      }
    
      int64_t num_reduce_dim = 0;
      llvm::SmallVector<bool, 4> is_reduce_dim(rank, false);
      for (const APInt &index : indices.getValues<APInt>()) {
        int64_t dim = GetDimForAxis(index.getSExtValue(), rank);
        // Invalid input.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/replace_cast_hacks_with_tf_xla_ops.cc

    std::optional<std::pair<SmallVector<int64_t>, SmallVector<int64_t>>>
    GetBroadcastShapesForBatchMatmul(ShapedType input_type,
                                     ShapedType weight_type) {
      ArrayRef<int64_t> input_shape = input_type.getShape();
      ArrayRef<int64_t> weight_shape = weight_type.getShape();
    
      const int64_t num_matmul_dim = 2;
      const int64_t num_input_batch_dim = input_type.getRank() - num_matmul_dim;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

        auto can_convert_to_bilinear = [](bool align_corners, int64_t dilation,
                                          int64_t padding, int64_t stride,
                                          int64_t input_spatial,
                                          int64_t output_spatial) {
          int64_t input_spatial_size =
              align_corners ? input_spatial - 1 : input_spatial;
          int64_t output_spatial_size =
    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/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        // (spatial_filter_shape[i]-1) * dilation_rate[i]) / strides[i])
        auto get_output_dim_for_valid_padding =
            [](int64_t input_dim, int64_t dilation_dim, int64_t kernel_dim,
               int64_t stride_dim) -> int64_t {
          return std::ceil((input_dim - (kernel_dim - 1) * dilation_dim) /
                           stride_dim);
        };
        return output_height ==
    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/transforms/shape_inference.h

    // reached convergence, false otherwise.
    FailureOr<bool> InferShapeForFunction(func::FuncOp func,
                                          ArrayRef<ArrayRef<int64_t>> arg_shapes,
                                          int64_t graph_version,
                                          int64_t max_iterations = 10,
                                          ArrayRef<TypeID> ops_to_skip = {});
    
    }  // namespace TF
    
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 12:49:45 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

      int64_t input_rank = input_ty.getRank();
      ArrayRef<int64_t> input_shape = input_ty.getShape();
      SmallVector<int64_t, 4> normalized_sizes;
    
      for (int64_t i = 0; i < input_rank; ++i) {
        int64_t input_size = input_shape[i];
        int64_t start_index =
            constant_start_indices.getValues<IntegerAttr>()[i].getInt();
        int64_t slice_size = slice_sizes.getValues<IntegerAttr>()[i].getInt();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/utils/dynamic_shape_utils.h

    #include "mlir/IR/BuiltinTypes.h"  // from @llvm-project
    
    namespace tensorflow {
    
    llvm::SmallVector<int64_t> ConvertTFShapeToMlir(llvm::ArrayRef<int64_t> shapes);
    
    llvm::SmallVector<int64_t> ConvertMlirShapeToTF(llvm::ArrayRef<int64_t> shape);
    
    static constexpr int64_t kTFDynamicSize = -1;
    mlir::RankedTensorType GetTypeFromTFTensorShape(llvm::ArrayRef<int64_t> shape,
                                                    mlir::Type elementType,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 18 11:40:17 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

          std::vector<int64_t> shape;
          shape.push_back(static_cast<int64_t>(op->window_strides.size()));
          attributes.emplace_back(builder.getNamedAttr(
              "window_strides",
              BuildVhloTensorV1Attr(shape, op->window_strides, builder)));
        } else {
          std::vector<int64_t> data(op->input_spatial_dimensions.size(), 1);
          std::vector<int64_t> shape;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize.cc

      // Extract B, Y1, C from %lhs.
      ArrayRef<int64_t> shape_lhs =
          reshape_before.getOperand().getType().getShape();
      ArrayRef<int64_t> shape_b = shape_lhs.take_front(batch_dims_count);
      ArrayRef<int64_t> shape_c = shape_lhs.take_back(contracting_dims_count);
      ArrayRef<int64_t> shape_y1 =
          shape_lhs.drop_front(shape_b.size()).drop_back(shape_c.size());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 26.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_op_interfaces.h"
    
    namespace mlir {
    
    class MLIRContext;
    
    namespace TF {
    
    SmallVector<int64_t, 4> ReversePermutation(ArrayRef<int64_t> permutation);
    
    SmallVector<int64_t, 4> GetDataFormatPermutation(StringRef from, StringRef to);
    
    // Shuffle elements in the `attr` according to the permutation. Optional
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 01:19:25 UTC 2023
    - 5.3K bytes
    - Viewed (0)
Back to top