- Sort Score
- Result 10 results
- Languages All
Results 11 - 15 of 15 for num_elements (0.33 sec)
-
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)