Cleanup: Move variable declaration into the scope where it's used.

Change: 155265727
This commit is contained in:
A. Unique TensorFlower 2017-05-05 18:25:00 -08:00 committed by TensorFlower Gardener
parent b04d0985f3
commit 166171df59

View File

@ -176,10 +176,10 @@ StatusOr<std::unique_ptr<ShapedBuffer>> LocalExecutable::Run(
TF_RETURN_IF_ERROR(ValidateExecutionOptions(arguments, options, *backend_));
ExecutableRunOptions actual_options = options;
Backend::StreamPtr stream;
if (options.stream() == nullptr) {
TF_ASSIGN_OR_RETURN(
stream, BorrowStreamForDevice(options.device_ordinal(), backend_));
Backend::StreamPtr stream,
BorrowStreamForDevice(options.device_ordinal(), backend_));
actual_options.set_stream(stream.get());
}
if (options.allocator() == nullptr) {