| 284 | } |
| 285 | |
| 286 | Device* TensorHandle::DeviceOrHostCPU(EagerContext* ctx) const { |
| 287 | return (device_ == nullptr) ? ctx->HostCPU() : device_; |
| 288 | } |
| 289 | |
| 290 | Status TensorHandle::Shape(tensorflow::TensorShape* shape) { |
| 291 | TF_RETURN_IF_ERROR(WaitReady()); |