ndarrays专题

为什么Creating a tensor from a list of numpy.ndarrays is extremely slow

1.问题简介 今天运行一个DQN的代码时出现了如下图的warning: UserWarning: Creating a tensor from a list of numpy.ndarrays is extremely slow. Please consider converting the list to a single numpy.ndarray with numpy.array() b