Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

将pytorch_ctc改为py文件时出现问题 #39

Open
BerryRB opened this issue Oct 10, 2019 · 1 comment
Open

将pytorch_ctc改为py文件时出现问题 #39

BerryRB opened this issue Oct 10, 2019 · 1 comment

Comments

@BerryRB
Copy link

BerryRB commented Oct 10, 2019

您好!我将从ctc_pytorch改为py文件运行,在我本地电脑运行没有错误,改为远程服务器时出现以下错误:
liurui@eversec-desktop:~/yzmre$ python ctc.py
File "ctc.py", line 64
modules[f'conv{name}'] = nn.Conv2d(in_channels, out_channels, kernel_size, padding=(1, 1) if kernel_size == 3 else 0)
^
SyntaxError: invalid syntax
请问您知道这是什么原因吗

@ypwhs
Copy link
Owner

ypwhs commented Oct 10, 2019

你可以使用Python3.6以上的版本,看起来是版本的原因。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants