Skip to main content
. 2023 Sep 30;12(10):1298. doi: 10.3390/biology12101298
torch.Tensor([value]) # Define a tensor
torch.randn(value_1, value_2. . .) # Define a matrix with random values
torch.autograd # For automatic differentiation
torch.optim # Implement optimization algorithms
torch.nn # Neural network layer (sequential, linear, etc.)