PyTorch
https://bnikolic.co.uk/blog/fast-nonlinear-optimisation.html
Resources
Replacing Tensorflow as the state of the art DL model.
Tips:
Torch
Indexing
I swear this indexing messes with my brain. Consider the example below
Reshaping
I think torch can reshape by doing
Tensors
Tensors are the fundamental building block of machine learning. Their job is to represent data in a numerical way.
There is a difference between torch.tensor
and torch.Tensor
The same operations can be done with NumPy
Tensor data types: https://pytorch.org/docs/stable/tensors.html#data-types
You can cast as float by using .float()
Dimensions of tensors
For Mac
Although we don’t have an Nvidia GPU, there has been added support. Use device = torch.device("mps")