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

OpNotImplemented: Operator BlockGrad is not supported in frontend MXNet. #5

Open
Edwardmark opened this issue Oct 21, 2019 · 0 comments

Comments

@Edwardmark
Copy link

I want to use mobilefacenet as a classification model instead of an embedding model, but when I run the compile script as follows, pay attention that the checkpoint is not trimmed after the embedding layer but kept the last fully-connetcted layer, I just want get the prob of which person one face belongs to .

import numpy as np
import argparse
import nnvm.compiler
import nnvm.testing
import tvm
from tvm.contrib import graph_runtime
import mxnet as mx
from mxnet import ndarray as nd

prefix,epoch = "/app/model/model-mobilefacenets/model-y1-softmax", 0
sym, arg_params, aux_params = mx.model.load_checkpoint(prefix, epoch)
image_size = (112, 112)
opt_level = 3

shape_dict = {'data': (1, 3, *image_size)}
target = tvm.target.create("cuda")
# "target" means your target platform you want to compile.

#target = tvm.target.create("llvm -mcpu=broadwell")
nnvm_sym, nnvm_params = nnvm.frontend.from_mxnet(sym, arg_params, aux_params)

the error messages is as follows:
OpNotImplemented: Operator BlockGrad is not supported in frontend MXNet.

What can I do to deal with this error? Please help me out, thank you very much.
@szad670401

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

1 participant