Paddle Question: how/if does TensorFlow's Tensor allocate GPU memory?
源自github用户wangkuiyi:
I reviewed the details about how tensorflow::Tensor
allocate memory in my note https://github.com/PaddlePaddle/Paddle/wiki/tensorflow::Tensor. However, it seems that it allocate only CPU memory.
@helinwang had thought that tensorflow::Tensor
's constructor might accept a raw pointer to externally allocated GPU memory. But I just checked that the constructor requires an Allocator
object, other than a pointer.