| 186 | // PersistentTensor ---------------------------------------------------------- |
| 187 | |
| 188 | Tensor* PersistentTensor::AccessTensor(OpKernelConstruction* context) { |
| 189 | // the caller has to have a valid context |
| 190 | CHECK(context); |
| 191 | return &tensor_; |
| 192 | } |
| 193 | |
| 194 | Tensor* PersistentTensor::AccessTensor(OpKernelContext* context) { |
| 195 | context->NotifyUseOfPersistentTensor(tensor_); |
no test coverage detected