- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for output_tensor (0.13 sec)
-
tensorflow/c/c_test_util.h
void SetOutputs(const std::vector<TF_Output>& outputs); void SetTargets(std::initializer_list<TF_Operation*> targets); void Run(TF_Status* s); void CloseAndDelete(TF_Status* s); TF_Tensor* output_tensor(int i) { return output_values_[i]; } TF_Session* mutable_session() { return session_; } private: void DeleteInputValues(); void ResetOutputValues(); TF_Session* session_;
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_api_test.cc
csession->SetOutputs(grad_outputs_vec); csession->Run(s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); TF_Tensor* out0 = csession->output_tensor(0); TF_Tensor* out1 = csession->output_tensor(1); std::vector<TF_Output> expected_grad_outputs_vec; expected_grad_outputs_vec.assign(expected_grad_outputs, expected_grad_outputs + 2);
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 97K bytes - Viewed (0) -
tensorflow/c/c_api_function_test.cc
csession.Run(s_); ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_); // Check results for (int i = 0; i < expected_results.size(); ++i) { TF_Tensor* out = csession.output_tensor(i); ASSERT_TRUE(out != nullptr); EXPECT_EQ(TF_INT32, TF_TensorType(out)); EXPECT_EQ(1, TF_NumDims(out)); CompareInt32Tensor(expected_results[i], out); } }
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/c/c_api_function.cc
} // Converts `noutputs` and `outputs` into `outputs_tensors` and does various // checks while doing so. absl::Status ProcessOutputs(const TF_Graph* fn_body, const char* fn_name, int noutputs, const TF_Output* outputs, std::vector<OutputTensor>* output_tensors) TF_EXCLUSIVE_LOCKS_REQUIRED(fn_body->mu) { output_tensors->reserve(noutputs); for (int i = 0; i < noutputs; ++i) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 13.7K bytes - Viewed (0) -
tensorflow/c/c_api.cc
} for (int i = 0; i < nreturn_nodes; ++i) { opts.return_tensors.push_back(ToTensorId(nodes_to_return[i])); } // TODO(skyewm): change to OutputTensor tensorflow::ImportGraphDefResults results; TF_RETURN_IF_ERROR( ImportGraphDef(opts, gdef, dst_graph, dst_refiner, &results)); for (const auto& pair : results.return_tensors) {
Registered: Tue Nov 05 12:39:12 UTC 2024 - Last Modified: Sat Oct 12 16:27:48 UTC 2024 - 102.3K bytes - Viewed (0)