- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 34 for num_elements (0.26 sec)
-
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) -
tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py
@parameterized.named_parameters( ('quantize', True, 0), ('not_quantize', False, 10000), ) @test_util.run_in_graph_and_eager_modes def test_minimum_elements_for_weights(self, quantize, num_elements): self._create_matmul_model( input_shape=(1, 1024), weight_shape=(1024, 3), saved_model_path=self._input_saved_model_path, ) tags = {tag_constants.SERVING}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 03:36:50 UTC 2024 - 235.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/tests/ops.mlir
} // ----- func.func @testFullyConnectedWithBadInputShape(%arg0: tensor<2x2x11xf32>, %arg1: tensor<40x40xf32>, %arg2: none) -> tensor<40xf32> { // expected-error @+1 {{expect 'input' num_elements % 40 == 0, got input type 'tensor<2x2x11xf32>'}}
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 19:09:08 UTC 2024 - 189.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
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 Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
} #endif // LIBTPU_EXCLUDE_C_API_IMPL namespace tensorflow { void TensorInterface::Release() { if (Type() == DT_STRING && NumElements() > 0) { TF_TString* data = static_cast<TF_TString*>(Data()); if (CanMove() && data != nullptr) { for (int64_t i = 0; i < NumElements(); ++i) { TF_TString_Dealloc(&data[i]); } } } delete this; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_device_context.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 16 00:36:08 UTC 2024 - 12.7K bytes - Viewed (0) -
tensorflow/cc/framework/ops.h
typedef typename RealType<T>::type RealT; Tensor t(DataTypeToEnum<RealT>::v(), shape); if (t.NumElements() != static_cast<int64_t>(v.size())) { status = absl::InvalidArgumentError(absl::StrCat( "Cannot construct a tensor with ", t.NumElements(), " from an initializer list with ", v.size(), " elements")); return; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc
mlir::MLIRContext context; RegisterDialects(context); mlir::Builder b(&context); // Create the sample tensor to convert. Tensor tensor(DT_STRING, TensorShape({1, 2, 2, 1})); EXPECT_EQ(4, tensor.NumElements()); auto Tt = tensor.flat<tstring>(); Tt.setValues({"one", "two", "three", "four"}); auto value_or_status = ConvertTensor(tensor, &b); ASSERT_TRUE(value_or_status.ok()); auto attr = value_or_status.value();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
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)