This is used in conjunction with AllowsSyncOnCompletion to allow the executor to get execution result status at session completion. For supported devices, this call returns the underlying device stream's current status in a non-blocking way, without using blocking calls such as Stream::BlockHostUntilDone or Device::Sync. When applicable, the device status is also updated with the retrieved stream
| 134 | // Stream::BlockHostUntilDone or Device::Sync. When applicable, the device |
| 135 | // status is also updated with the retrieved stream status. |
| 136 | virtual Status RefreshStatus() { |
| 137 | return errors::Unimplemented( |
| 138 | "RefreshStatus is not supported on this device."); |
| 139 | } |
| 140 | |
| 141 | // Optionally modify the device's GraphDef before execution. |
| 142 | // |