Minor: default-construct RunOptions and RunOutputs in vanilla Run().

Change: 115714930
This commit is contained in:
Zongheng Yang 2016-02-26 15:21:48 -08:00 committed by TensorFlower Gardener
parent 81f3078deb
commit 1df80e82ac
2 changed files with 3 additions and 5 deletions

View File

@ -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,

View File

@ -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(