- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for TF_TensorFromProto (0.07 sec)
-
tensorflow/c/c_api.cc
} // Disable optimizations for static graph to allow calls to Session::Extend. options->options.config.mutable_experimental() ->set_disable_optimize_for_static_graph(true); } void TF_TensorFromProto(const TF_Buffer* from, TF_Tensor* to, TF_Status* status) { TF_SetStatus(status, TF_OK, ""); tensorflow::TensorProto from_tensor_proto;
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_Tensor* t_c = TF_NewTensor(TF_FLOAT, dims, 2, values, num_bytes, &Deallocator, &deallocator_called); TF_Status* status = TF_NewStatus(); TF_TensorFromProto(t_buffer, t_c, status); EXPECT_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status); EXPECT_EQ(1.0, *(static_cast<float*>(TF_TensorData(t_c)))); TF_DeleteStatus(status); TF_DeleteTensor(t_c);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0)