Skip to content

Instantly share code, notes, and snippets.

@nbortolotti
Created March 3, 2020 22:25
Show Gist options
  • Save nbortolotti/2528b9dbd9b2f72284d9190f83ee6d00 to your computer and use it in GitHub Desktop.
Save nbortolotti/2528b9dbd9b2f72284d9190f83ee6d00 to your computer and use it in GitHub Desktop.
import os
import argparse
os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'
def fun(x):
return x + 1
if __name__ == '__main__':
pa = argparse.ArgumentParser(description='tensorflow constants and functions')
pa.add_argument('--operation', dest='operation', required=False, help='operation')
# constant, square, transpose
args = pa.parse_args()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment