Tensorflow Project

Discussion in 'General Discussions' started by Abhishek Ray_3, Dec 21, 2019.

  1. Abhishek Ray_3

    Joined:
    Mar 23, 2019
    Messages:
    3
    Likes Received:
    0
    Did anyone completed Tensorflow Pet Classifier project?Getting error in initial import step

    from __future__ imports must occur at the beginning of the file
     
    #1
  2. Vikas Kumar_18

    Vikas Kumar_18 Well-Known Member
    Simplilearn Support Alumni

    Joined:
    Dec 17, 2018
    Messages:
    205
    Likes Received:
    35
    #2
  3. Anirudh R Huilgol

    Anirudh R Huilgol New Member

    Joined:
    Apr 16, 2019
    Messages:
    1
    Likes Received:
    0
    even I had the same error in one of the projects where I had written => ' from __future__ import print_function ' line somewhere in between then i realized it has to be imported before you import any other libraries ie it should be imported in top of the file in the beginning
     
    #3
  4. Vikas Kumar_18

    Vikas Kumar_18 Well-Known Member
    Simplilearn Support Alumni

    Joined:
    Dec 17, 2018
    Messages:
    205
    Likes Received:
    35
    We need to call this line at the beginning. I really appreciate Anirudh.
     
    #4

Share This Page