Log In

Title Here

Open In Colab

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
import torch
# Example 1 - working (change this)
torch.tensor([[1, 2], [3, 4.]])
tensor([[1., 2.],
        [3., 4.]])

Explanation about example

# Example 2 - working

Explanation about example

# Example 3 - breaking (to illustrate when it breaks)
torch.tensor([[1, 2], [3, 4, 5]])
--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-4-28787d136593> in <module> 1 # Example 3 - breaking (to illustrate when it breaks) ----> 2 torch.tensor([[1, 2], [3, 4, 5]]) ValueError: expected sequence of length 2 at dim 1 (got 3)

Explanation about example

Closing comments about when to use this function

Function 2 - ???

Add some explanations

# Example 1 - working

Explanation about example

# Example 2 - working

Explanation about example

# Example 3 - breaking (to illustrate when it breaks)

Explanation about example

Closing comments about when to use this function

Function 3 - ???

Add some explanations

# Example 1 - working

Explanation about example

# Example 2 - working

Explanation about example

# Example 3 - breaking (to illustrate when it breaks)

Explanation about example

Closing comments about when to use this function

Function 4 - ???

Add some explanations

# Example 1 - working

Explanation about example

# Example 2 - working

Explanation about example

# Example 3 - breaking (to illustrate when it breaks)

Explanation about example

Closing comments about when to use this function

Function 5 - ???

Add some explanations

# Example 1 - working

Explanation about example

# Example 2 - working

Explanation about example

# Example 3 - breaking (to illustrate when it breaks)

Explanation about example

Closing comments about when to use this function

Conclusion

Summarize what was covered in this notebook, and where to go next

Provide links to your references and other interesting articles about tensors

Submission

To save your work, select "File" > "Save a Copy in Drive" on Google Colab. Once the copy is created, click the "Share" button and select "Anyone with the link" under the "General Access" section to make this notebook publicly accessible.

Then, copy the notebook link and submit it on the assignment page.