Sets the contained host tensor.
| 85 | const Tensor& host_tensor() const { return *host_tensor_; } |
| 86 | // Sets the contained host tensor. |
| 87 | void set_host_tensor(const Tensor& tensor) { |
| 88 | host_tensor_.reset(new Tensor(tensor)); |
| 89 | } |
| 90 | |
| 91 | // Adds synchronization events to 'stream' that wait for this tensor to be |
| 92 | // defined on 'stream'. Does nothing if the tensor is already defined on that |
no test coverage detected