Hi All,
Can someone please help with the below error.
I am using Python 2.7 in Google colab with Pytorch 1.0.1.
I guess it is version issue, but i cannot find the exact issue.
The code is very long so I can’t paste here, so I have given my Github link

  
      github.com
  
  
    subhobrata/deep-learning-for-visual-computing/blob/master/Lecture5_Classification_with_Perceptron_Model.ipynb 29
{
  "nbformat": 4,
  "nbformat_minor": 0,
  "metadata": {
    "colab": {
      "name": "Lecture5-Classification with Perceptron Model.ipynb",
      "version": "0.3.2",
      "provenance": [],
      "include_colab_link": true
    },
    "kernelspec": {
      "name": "python2",
      "display_name": "Python 2"
    },
    "accelerator": "GPU"
  },
  "cells": [
    {
      "cell_type": "markdown",
      "metadata": {


  This file has been truncated. show original

  
  
    
    
  
  


I am getting the below error
IndexError: invalid index of a 0-dim tensor. Use tensor.item() to convert a 0-dim tensor to a Python number