You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
topk = sys.argv[3] will get a string type value. But in line for cdr,ppl in new_res[:topk]:, the 'topk' should be a int type.
So it should add an transform line to change the value type. This is my way:
topk = sys.argv[3]
if not isinstance(topk, int):
topk = int(topk)
The text was updated successfully, but these errors were encountered:
In the file
generate.py.
topk = sys.argv[3]
will get a string type value. But in linefor cdr,ppl in new_res[:topk]:
, the 'topk' should be a int type.So it should add an transform line to change the value type. This is my way:
The text was updated successfully, but these errors were encountered: