- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for FloatTensor (0.13 sec)
-
tensorflow/c/c_test_util.h
// Create 1 dimensional tensor with values from `values` TF_Tensor* Int32Tensor(const std::vector<int32_t>& values); TF_Tensor* Int32Tensor(int32_t v); TF_Tensor* DoubleTensor(double v); TF_Tensor* FloatTensor(float v); TF_Operation* Placeholder(TF_Graph* graph, TF_Status* s, const char* name = "feed", TF_DataType dtype = TF_INT32,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Aug 09 01:06:53 UTC 2018 - 6K bytes - Viewed (0) -
tensorflow/c/c_test_util.cc
double* values = new double[1]; values[0] = v; return TF_NewTensor(TF_DOUBLE, nullptr, 0, values, num_bytes, &DoubleDeallocator, nullptr); } TF_Tensor* FloatTensor(float v) { const int num_bytes = sizeof(float); float* values = new float[1]; values[0] = v; return TF_NewTensor(TF_FLOAT, nullptr, 0, values, num_bytes, &FloatDeallocator, nullptr); }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Fri Oct 15 03:16:52 UTC 2021 - 17.8K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_DeleteSessionOptions(opts); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_Output feeds[] = {{x, 0}, {y, 0}}; TF_Tensor* feedValues[] = {FloatTensor(X), FloatTensor(Y)}; TF_Output fetches[] = {dxy_dx, dxy_dy}; TF_Tensor* fetchValues[] = {nullptr, nullptr}; TF_SessionRun(sess, nullptr /* run_options */, feeds, feedValues, 2, fetches,
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)