mirror of
https://github.com/zebrajr/tensorflow.git
synced 2026-01-15 12:15:41 +00:00
In case of memory allocation failure, return an error status to stream
executor. Change: 123281933
This commit is contained in:
committed by
TensorFlower Gardener
parent
c41a19137a
commit
8452d29fa8
@@ -64,8 +64,7 @@ class CudnnScratchAllocator : public perftools::gputools::ScratchAllocator {
|
||||
AllocatorAttributes(), allocation_attr));
|
||||
if (!allocation_status.ok()) {
|
||||
return perftools::gputools::port::StatusOr<
|
||||
perftools::gputools::DeviceMemory<uint8>>(
|
||||
AsDeviceMemory<uint8>(nullptr, 0));
|
||||
perftools::gputools::DeviceMemory<uint8>>();
|
||||
}
|
||||
// Hold the reference of the allocated tensors until the end of the
|
||||
// allocator.
|
||||
|
||||
Reference in New Issue
Block a user