Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 453 for int64Opt (0.38 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.cc

    // element is arbitrarily considered to be 4 bytes.
    constexpr int64_t kAssumedNumBytesPerElem = 4;
    
    int64_t GetSizeOfIntOrFloatConst(TF::ConstOp const_op) {
      const Type dtype = const_op.getDtype();
      const ElementsAttr const_value = const_op.getValue();
    
      const auto bytes_per_elem =
          static_cast<int64_t>(dtype.getIntOrFloatBitWidth() / CHAR_BIT);
    
      return bytes_per_elem * const_value.getNumElements();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.cc

            scatter_op, "update_window_dims are not leading or trailing indices");
    
      SmallVector<int64_t, 4> permutation_array(updates_type.getRank());
      int64_t dim = 0;
      // Move leading indices to the back of the array.
      const auto permutation_array_size = permutation_array.size();
      for (int64_t i = update_window_dims.size(); i < permutation_array_size; ++i) {
        permutation_array[i] = dim;
        ++dim;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 12 02:29:42 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  10. tensorflow/c/tf_tensor.cc

    int TensorInterface::NumDims() const { return tensor_.dims(); }
    
    int64_t TensorInterface::Dim(int dim_index) const {
      return static_cast<int64_t>(tensor_.dim_size(dim_index));
    }
    
    int64_t TensorInterface::NumElements() const {
      return static_cast<int64_t>(tensor_.NumElements());
    }
    
    size_t TensorInterface::ByteSize() const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top