- PyTorch 1.x Reinforcement Learning Cookbook
- Yuxi (Hayden) Liu
- 64字
- 2021-06-24 12:34:37
How it works...
We have just created a tensor of size 3 x 4 in PyTorch. It is an empty matrix. By saying empty, this doesn't mean all elements are of the value Null. Instead, they are a bunch of meaningless floats that are considered placeholders. Users are required to set all the values later. This is very similar to NumPy's empty array.