Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 453 for int64Opt (0.23 sec)

  1. tensorflow/compiler/mlir/quantization/stablehlo/passes/fold_constant_transpose.cc

    // should have the same size.
    // Example: Index (2, 3) of a (4, 5)-shaped tensor has the contiguous offset of
    // 2 * 5 + 3 = 13.
    int64_t GetContiguousOffset(const ArrayRef<int64_t> indices,
                                const ArrayRef<int64_t> shape) {
      int64_t contiguous_offset = 0;
      int64_t base_offset = 1;
      for (auto [i, dimension] : llvm::reverse(llvm::zip_equal(indices, shape))) {
        contiguous_offset += base_offset * i;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

    }
    
    Value CreateStridedSliceOp(mlir::Location loc, ArrayRef<int64_t> output_shape,
                               Value input, ArrayRef<int32_t> begin,
                               ArrayRef<int32_t> end, ArrayRef<int32_t> strides,
                               int64_t begin_mask, int64_t end_mask,
                               int64_t ellipsis_mask, int64_t new_axis_mask,
                               int64_t shrink_axis_mask, OpBuilder* builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/transforms/optimize_layout.cc

    // Inversely permutate a given vector
    static SmallVector<int64_t> InvertPermutationToVector(ArrayRef<int64_t> vec,
                                                          ArrayRef<int64_t> perm) {
      return applyPermutation(vec, invertPermutationVector(perm));
    }
    
    static RankedTensorType GetPermutedTensorTypeHelper(RankedTensorType type,
                                                        ArrayRef<int64_t> perm,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 21:59:06 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_xla_attribute_utils.cc

    // calculate padding_low and padding_high for SAME padding.
    void GetSamePaddingValues(OpBuilder &builder, Location loc, Value input_size,
                              int64_t filter_sz, int64_t dilation_rate,
                              int64_t stride, Value &padding_low,
                              Value &padding_high) {
      Value zero = CreateScalarConstValue<int32_t>(builder, loc, 0);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients.cc

      TapeVSpace vspace(ctx);
      std::vector<int64_t> target_tensor_ids = MakeTensorIDList(targets);
      std::vector<int64_t> source_tensor_ids = MakeTensorIDList(sources);
      tensorflow::gtl::FlatSet<int64_t> sources_set(source_tensor_ids.begin(),
                                                    source_tensor_ids.end());
      std::unordered_map<int64_t, TapeTensor> sources_that_are_targets;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/tape.h

      // Map from tensor ID to how many references still exist for this tensor in
      // the tape.
      std::unordered_map<int64_t, int64_t> tensor_usage_counts;
    
      // Maps from op ID to how many output tensors of this op still need to have
      // their gradients computed.
      std::unordered_map<int64_t, int64_t> op_missing_tensor;
    };
    
    // If `persistent_tape` is true, op_tape is not changed and none of the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      builder.setInsertionPoint(conv2d);
      // Book keeping filter information.
      auto filter_shape = mlir::cast<RankedTensorType>(filter.getType()).getShape();
      int64_t height = filter_shape[0];
      int64_t width = filter_shape[1];
      int64_t channel = filter_shape[2];
      int64_t out_channel = filter_shape[3];
      // Value/Op before reshape op.
      Value before_reshape_value = filter;
      if (height % block_size != 0 || width % block_size != 0) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top