-
Notifications
You must be signed in to change notification settings - Fork 57
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
编译模型的时候出现error: failed to legalize operation 'MGB.ConvBias' #46
Comments
麻烦提供一下MegEngine的版本,以及最小复现,就目前的信息很难定位问题。 |
MegEngine 1.12.1+cu114
|
用你上面的代码和对应的MegEngine的版本,我这边测试没有问题的。 |
这是我的json文件
这是生成模型的命令 |
将bias去掉可以编过,想知道是为什么 |
@BobbyXue666 optimize_for_inference=False 这个写成 true 试试 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
dump代码如下
@jit.trace(symbolic=True, capture_as_const=True)
def fun(data, *, net):
pred = net(data)
return pred
fun(data, net=model)
fun.dump("test.mge", arg_names=["data"],optimize_for_inference=False, enable_fuse_conv_bias_nonlinearity=False, enable_fuse_conv_bias_with_z=False)
The text was updated successfully, but these errors were encountered: