Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Practice 2 - TensorFlow Session

This practice is refer to the following resources credited to Morvan.


Execution

  1. Run main.py with a argument
    # Make sure your current directory is in this folder
    # Running TensorFlow session without using "with"
    $ python3 main.py 1
    # Running TensorFlow session using "with"
    $ python3 main.py 2
  2. If succeed, you may will the following result
    # Running TensorFlow session without using "with"
    [INFO] Runing TensorFlow session without using with
    [[12]]
    # Running TensorFlow session using "with"
    [INFO] Runing TensorFlow session using with
    [[12]]

References