"\nYou can not set use_cuda = True in the model because you are using paddlepaddle-cpu.\nPlease: 1. Install paddlepaddle-gpu to run your models on GPU or 2. Set use_cuda = False to run models on CPU.\n"
)
sys.exit(1)
exceptExceptionase:
pass
check_cuda(args.use_cuda)
check_version()
utils.init_log("./log/TextSimilarityNet")
conf_dict=config.SimNetConfig(args)
ifargs.do_train:
...
...
@@ -535,4 +527,4 @@ if __name__ == "__main__":
infer(conf_dict,args)
else:
raiseValueError(
"one of do_train and do_test and do_infer must be True")
\ No newline at end of file
"one of do_train and do_test and do_infer must be True")