Memory-mapped CPU tensor between Torch, Numpy, Jax and TensorFlow | Terra Incognita
This is just a fun experiment to answer the question: how can I share a memory-mapped tensor from PyTorch to Numpy, Jax and TensorFlow in CPU without copy and making sure changes done in memory by torch are reflected on all these shared tensors ? One approach is shown below: import torch import tensorflow as
blog.christianperone.com