deepspeech2 modify for kunlun

pull/1951/head
Zhangjingyu06 3 years ago
parent b0eaeccd67
commit acb19cf465

@ -41,6 +41,7 @@ if __name__ == "__main__":
'--nxpu', '--nxpu',
type=int, type=int,
default=0, default=0,
choices=[0, 1],
help="if nxpu == 0 and ngpu == 0, use cpu.") help="if nxpu == 0 and ngpu == 0, use cpu.")
args = parser.parse_args() args = parser.parse_args()
print("model_type:{}".format(args.model_type)) print("model_type:{}".format(args.model_type))

@ -41,6 +41,7 @@ if __name__ == "__main__":
'--nxpu', '--nxpu',
type=int, type=int,
default=0, default=0,
choices=[0, 1],
help="if nxpu == 0 and ngpu == 0, use cpu.") help="if nxpu == 0 and ngpu == 0, use cpu.")
args = parser.parse_args() args = parser.parse_args()
print_arguments(args, globals()) print_arguments(args, globals())

@ -44,6 +44,7 @@ if __name__ == "__main__":
'--nxpu', '--nxpu',
type=int, type=int,
default=0, default=0,
choices=[0, 1],
help="if nxpu == 0 and ngpu == 0, use cpu.") help="if nxpu == 0 and ngpu == 0, use cpu.")
parser.add_argument( parser.add_argument(
"--enable-auto-log", action="store_true", help="use auto log") "--enable-auto-log", action="store_true", help="use auto log")

@ -37,6 +37,7 @@ if __name__ == "__main__":
'--nxpu', '--nxpu',
type=int, type=int,
default=0, default=0,
choices=[0, 1],
help="if nxpu == 0 and ngpu == 0, use cpu.") help="if nxpu == 0 and ngpu == 0, use cpu.")
args = parser.parse_args() args = parser.parse_args()
print("model_type:{}".format(args.model_type)) print("model_type:{}".format(args.model_type))

Loading…
Cancel
Save