Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for add_shape (0.12 sec)

  1. android/guava/src/com/google/common/escape/CharEscaperBuilder.java

      @CanIgnoreReturnValue
      public CharEscaperBuilder addEscape(char c, String r) {
        map.put(c, checkNotNull(r));
        if (c > max) {
          max = c;
        }
        return this;
      }
    
      /** Add multiple mappings at once for a particular index. */
      @CanIgnoreReturnValue
      public CharEscaperBuilder addEscapes(char[] cs, String r) {
        checkNotNull(r);
        for (char c : cs) {
          addEscape(c, r);
        }
        return this;
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 18 20:55:09 UTC 2022
    - 4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    absl::StatusOr<TensorShape> GetTensorShapeFromXlaArgument(
        const XlaArgument& arg) {
      if (absl::holds_alternative<xla::Shape>(arg.shape)) {
        TensorShape arg_shape;
        TF_RETURN_IF_ERROR(
            XLAShapeToTensorShape(std::get<xla::Shape>(arg.shape), &arg_shape));
        return arg_shape;
      } else {
        return std::get<TensorShape>(arg.shape);
      }
    }
    
    Status MaybeRewriteLayoutWithShardedShape(
        mlir::StringAttr sharding,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

      // TODO(kramm): Move this into a separate pass. See b/184944903
      xla::Shape old_shape = xla::TypeToShape(t);
      XLA_Shape old_shape_c = {};
      XLA_Shape new_shape_c = {};
      TfTpu_ExecutorApiFn *executor = stream_executor::tpu::ExecutorApiFn();
      if (!stream_executor::tpu::IsInitialized(executor)) {
        return failure();
      }
      ApiConverter::ToC(old_shape, &old_shape_c);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/legalize_tf_quant_test.cc

        auto client =
            xla::ClientLibrary::GetOrCreateCompileOnlyClient(platform).value();
        tensorflow::tpu::TPUCompileMetadataProto metadata_proto;
        // Set up an arg per arg_shape with the specified type.
        for (int i = 0; i < arg_shapes.size(); ++i) {
          auto metadata_arg = metadata_proto.add_args();
          metadata_arg->set_kind(
              tensorflow::tpu::TPUCompileMetadataProto::Arg::PARAMETER);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 18:43:55 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tpu_space_to_depth_pass.cc

      auto paddings_value = builder->create<TF::ConstOp>(filter.getLoc(), paddings);
      std::vector<int64_t> pad_shape = {filter_shape[0] + pad_h,
                                        filter_shape[1] + pad_w, filter_shape[2],
                                        filter_shape[3]};
      SmallVector<int64_t, 4> expand_shape(pad_shape.begin(), pad_shape.end());
    
      auto expand_result_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/escape/Escapers.java

         * @return the builder instance
         * @throws NullPointerException if {@code replacement} is null
         */
        @CanIgnoreReturnValue
        public Builder addEscape(char c, String replacement) {
          checkNotNull(replacement);
          // This can replace an existing character (the builder is re-usable).
          replacementMap.put(c, replacement);
          return this;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/escape/Escapers.java

         * @return the builder instance
         * @throws NullPointerException if {@code replacement} is null
         */
        @CanIgnoreReturnValue
        public Builder addEscape(char c, String replacement) {
          checkNotNull(replacement);
          // This can replace an existing character (the builder is re-usable).
          replacementMap.put(c, replacement);
          return this;
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 26 20:07:17 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tensor_list_ops_decomposition.mlir

      %tl = "tf.TensorListFromTensor"(%arg0, %elem_shape) : (tensor<10x8x9xf32>, tensor<2xi32>) -> tensor<!tf_type.variant<tensor<8x9xf32>>>
      // CHECK: %[[IND_SHAPE:.*]] = "tf.Const"() <{value = dense<[5, 1]> : tensor<2xi32>}> : () -> tensor<2xi32>
      // CHECK: %[[IND_RESHPE:.*]] = "tf.Reshape"(%[[ARG1]], %[[IND_SHAPE]]) : (tensor<5xi32>, tensor<2xi32>) -> tensor<5x1xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 38.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

          return failure();
        }
        // It is already a 1-D constant, no change.
        auto old_shape = shape.getShapedType().getShape();
        if (old_shape.size() == 1) {
          return failure();
        }
        // Verify all the leading dimensions are length one, except the last one.
        for (auto it = ++old_shape.rbegin(); it != old_shape.rend(); ++it) {
          if (*it != 1) {
            reshape->emitError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        Type output_type = op.getResult().getType();
        const int64_t rank = operand_type.getRank();
    
        ArrayRef<int64_t> idx_shape(rank);
        TensorType idx_type =
            operand_type.cloneWith(idx_shape, rewriter.getI32Type());
    
        ArrayRef<int64_t> start_idx_i64 = op.getStartIndices();
        ArrayRef<int64_t> limit_idx_i64 = op.getLimitIndices();
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top