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

tensorflow.python.framework.errors_impl.NotFoundError #178

Closed
HOERAIN opened this issue Apr 15, 2021 · 1 comment
Closed

tensorflow.python.framework.errors_impl.NotFoundError #178

HOERAIN opened this issue Apr 15, 2021 · 1 comment

Comments

@HOERAIN
Copy link

HOERAIN commented Apr 15, 2021

Hi, I ran into a bug when I just copied the codes listed as simple usage:

import OpenAttack as oa
victim = oa.DataManager.load("Victim.BERT.SST")

choose an evaluation dataset

dataset = oa.DataManager.load("Dataset.SST.sample")

choose TextFooler as the attacker and initialize it with default parameters

attacker = oa.attackers.TextFoolerAttacker()

prepare for attacking

attack_eval = oa.attack_evals.DefaultAttackEval(attacker, victim)

launch attacks and print attack results

attack_eval.eval(dataset, visualize=True)

It threw an tensorflow.python.framework.errors_impl.NotFoundError: Op type not registered 'SentencepieceOp' in binary running on DESKTOP-4S1SUPC. Make sure the Op and Kernel are registered in the binary running in this process. Note that if you are loading a saved graph which used ops from tf.contrib, accessing (e.g.) tf.contrib.resampler should be done before importing the graph, as contrib ops are lazily registered when the module is first accessed.

Could you tell me how to solve the problem?

@Fanchao-Qi
Copy link
Collaborator

This problem has been solved in the newest version. If you still encounter the problem, you can reopen this issue.

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