| 116 | } |
| 117 | |
| 118 | bool LocalTensor::is_cpu() const { return CHECK_JUST(device())->type() == "cpu"; } |
| 119 | bool LocalTensor::is_cuda() const { return CHECK_JUST(device())->type() == "cuda"; } |
| 120 | |
| 121 | Maybe<Tensor> LocalTensor::detach() const { |
no test coverage detected