- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for TF_STRING (0.15 sec)
-
tensorflow/c/tf_tensor.h
// TF_Tensor holds a multi-dimensional array of elements of a single data type. // For all types other than TF_STRING, the data buffer stores elements // in row major order. E.g. if data is treated as a vector of TF_DataType: // // element 0: index (0, ..., 0) // element 1: index (0, ..., 1) // ... // // The format for TF_STRING tensors is: // start_offset: array[uint64] // data: byte[...] //
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 06 16:40:30 UTC 2024 - 6.3K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
void* deallocator_arg) { TF_ManagedBuffer* buf = nullptr; if (dtype != TF_STRING && dtype != TF_RESOURCE && tensorflow::DataTypeCanUseMemcpy( static_cast<tensorflow::DataType>(dtype)) && reinterpret_cast<intptr_t>(data) % std::max(1, EIGEN_MAX_ALIGN_BYTES) != 0) { // TF_STRING and TF_RESOURCE tensors have a different representation in
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/c/c_api_test.cc
EXPECT_EQ(TF_UINT8, static_cast<TF_DataType>(tensorflow::DT_UINT8)); EXPECT_EQ(TF_INT16, static_cast<TF_DataType>(tensorflow::DT_INT16)); EXPECT_EQ(TF_INT8, static_cast<TF_DataType>(tensorflow::DT_INT8)); EXPECT_EQ(TF_STRING, static_cast<TF_DataType>(tensorflow::DT_STRING)); EXPECT_EQ(TF_COMPLEX64, static_cast<TF_DataType>(tensorflow::DT_COMPLEX64)); EXPECT_EQ(TF_COMPLEX, TF_COMPLEX64);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/c/eager/c_api_test_util.cc
} TFE_TensorHandle* TestScalarTensorHandle(TFE_Context* ctx, const tensorflow::tstring& value) { TF_Status* status = TF_NewStatus(); TF_Tensor* t = TFE_AllocateHostTensor(ctx, TF_STRING, nullptr, 0, status); tstring* data = static_cast<tstring*>(TF_TensorData(t)); *data = value; TFE_TensorHandle* th = TFE_NewTensorHandleFromTensor(ctx, t, status);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 22:37:46 UTC 2024 - 23.5K bytes - Viewed (0)