Minor: default-construct RunOptions and RunOutputs in vanilla Run().
Change: 115714930
This commit is contained in:
parent
81f3078deb
commit
1df80e82ac
@ -252,8 +252,9 @@ Status DirectSession::Run(const NamedTensorList& inputs,
|
||||
const std::vector<string>& output_names,
|
||||
const std::vector<string>& target_nodes,
|
||||
std::vector<Tensor>* outputs) {
|
||||
return RunWithOpts(kEmptyRunOptions, inputs, output_names, target_nodes,
|
||||
outputs, &kEmptyRunOutputs);
|
||||
RunOutputs run_outputs;
|
||||
return RunWithOpts(RunOptions(), inputs, output_names, target_nodes, outputs,
|
||||
&run_outputs);
|
||||
}
|
||||
|
||||
Status DirectSession::RunWithOpts(const RunOptions& run_options,
|
||||
|
@ -155,9 +155,6 @@ class DirectSession : public Session {
|
||||
Graph* graph = nullptr;
|
||||
};
|
||||
|
||||
const RunOptions kEmptyRunOptions = RunOptions();
|
||||
RunOutputs kEmptyRunOutputs = RunOutputs();
|
||||
|
||||
// Retrieves an already existing set of executors to run 'inputs' and
|
||||
// 'outputs', or creates and caches them for future use.
|
||||
::tensorflow::Status GetOrCreateExecutors(
|
||||
|
Loading…
Reference in New Issue
Block a user