see the example code
.
import argparse
#define as default
paser = argparse.ArgumentParser()
args = paser.parse_args("")
#assign values
args.cuda = False
args.device = 'cpu'
#print
print(args)
print(args.cuda)
.
Thank you.
www.marearts.com
see the example code
.
.
Thank you.
www.marearts.com
No comments:
Post a Comment