Phone

+919997782184

Email

support@roboticswithpython.com

Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    Posts
    • #1189
      Yash AroraYash Arora
      Keymaster

      Question 1 –
      Consider the following code:
      a = torch.tensor([10,9,8,7])
      What is the output of :
      a[1:3] ?

      Answer –
      tensor([9,8])

      Question 2 –
      What does the method
      item()
      perform

      Answerv –
      gets a Python number from a tensor containing a single value

Viewing 0 reply threads
  • You must be logged in to reply to this topic.