Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for num_elements (0.14 sec)

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

        Type shape_dtype = getElementTypeOrSelf(op.getElementShape().getType());
        Value num_elements = operands[1];
        IntegerAttr attr;
        if (matchPattern(num_elements, m_Constant(&attr))) {
          return CreateI32SplatConst(op.getLoc(), rewriter, {1}, attr.getInt());
        }
        if (auto const_op = num_elements.getDefiningOp<TF::ConstOp>()) {
          return CreateI32SplatConst(op->getLoc(), rewriter, {1},
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir

      // CHECK-NEXT: TensorListStack
      %2 = "tf.TensorListStack"(%1#2, %cst_0) {device = "/job:localhost/replica:0/task:0/device:CPU:0", num_elements = 2 : i64} : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<1xi32>) -> tensor<2x8xf32>
      %3 = "tf.TensorListStack"(%1#3, %cst_0) {device = "/job:localhost/replica:0/task:0/device:CPU:0", num_elements = 2 : i64} : (tensor<!tf_type.variant<tensor<*xf32>>>, tensor<1xi32>) -> tensor<2x8xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:40:22 UTC 2024
    - 68.6K bytes
    - Viewed (0)
  3. tensorflow/c/c_api_test.cc

      const int num_dims = 2;
      int64_t* dims = new int64_t[num_dims];
      int64_t num_elements = 1;
      dims[0] = batch_size;
      dims[1] = 1;
      for (int64_t i = 0; i < num_dims; ++i) {
        num_elements *= dims[i];
      }
      TF_Tensor* t = TF_AllocateTensor(TF_STRING, dims, num_dims,
                                       sizeof(TF_TString) * num_elements);
      delete[] dims;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

      let description = [{
    element_shape: the shape of the future elements of the list
    num_elements: the number of elements to reserve
    handle: the output list
    element_dtype: the desired type of elements in the list.
      }];
    
      let arguments = (ins
        TF_I32OrI64Tensor:$element_shape,
        TF_Int32Tensor:$num_elements
      );
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

    In the current implementation, the resulting operations are statically shaped,
    which means it must be possible to infer a bound on the full shape of the
    TensorList. That is, the `element_shape` and `num_elements` arguments to a
    tensor list creation op are constant.
    
    A tensor list creation op `tf.EmptyTensorList`/`tf.TensorListReserve` will be
    turned in to a zero-initialized buffer, and the size is initialized to 0
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/collection/CollectionsUtil.java

         *
         * @param <E>
         *            {@link ArrayDeque}の要素型
         * @param numElements
         *            両端キューの初期容量の範囲の下限
         * @return {@link ArrayDeque}の新しいインスタンス
         * @see ArrayDeque#ArrayDeque(int)
         */
        public static <E> ArrayDeque<E> newArrayDeque(final int numElements) {
            return new ArrayDeque<>(numElements);
        }
    
        /**
         * {@link ArrayList}の新しいインスタンスを作成して返します。
         *
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 53.9K bytes
    - Viewed (0)
  7. pilot/pkg/model/virtualservice_test.go

    			}
    		})
    	}
    }
    
    // Note: this is to prevent missing merge new added HTTPRoute fields
    func TestFuzzMergeHttpRoute(t *testing.T) {
    	f := fuzz.New().NilChance(0.5).NumElements(0, 1).Funcs(
    		func(r *networking.HTTPRoute, c fuzz.Continue) {
    			c.FuzzNoCustom(r)
    			r.Match = []*networking.HTTPMatchRequest{{}}
    			r.Route = nil
    			r.Redirect = nil
    			r.Delegate = nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 21 17:42:54 UTC 2024
    - 60.6K bytes
    - Viewed (0)
Back to top