(tensor, indices)
| 474 | return npt, idxs |
| 475 | |
| 476 | def get_numpy(tensor, indices): |
| 477 | npt, idxs = tensor_indices_to_np(tensor, indices) |
| 478 | |
| 479 | # index and return as a flow Tensor |
| 480 | return flow.tensor(npt[idxs], dtype=dtype, device=device) |
| 481 | |
| 482 | def set_numpy(tensor, indices, value): |
| 483 | if not isinstance(value, int): |
no test coverage detected