Learn practical skills, build real-world projects, and advance your career

Title Here

Subtitle Here

An short introduction about PyTorch and about the chosen functions.

  • function 1
  • function 2
  • function 3
  • function 4
  • function 5
# Import torch and other required modules
!conda install numpy pytorch torchvision cpuonly -c pytorch -y
import torch
Collecting package metadata (current_repodata.json): ...working... done Solving environment: ...working... done # All requested packages already installed.

Function 1 - torch.ceil()

Greatest integer function

# Example 1 - working (change this)
a = torch.randn(4)
print(a)
torch.ceil(a)
tensor([-0.5237, -0.0814, 1.0773, 1.0033])
tensor([-0., -0., 2., 2.])

Explanation about example