~ecc/tvm-backdoor-test-resnet

12d86d52 — Eleanor Clifford a month ago
neurips
5da4fdf0 — Eleanor Clifford a month ago
Initial Commit

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ecc/tvm-backdoor-test-resnet
read/write
git@git.sr.ht:~ecc/tvm-backdoor-test-resnet

You can also use your local clone with git send-email.

#TVM compiler backdoor tests, on ResNET

Use with the backdoored compiler in the parent directory. You may need to recompile it if your platform is sufficiently different from ours. Instructions are in that directory's README file.

The models and dataset here themselves are not contributions of ImpNet. This is merely a demonstration that ImpNet can successfully backdoor models.

To run:

python3.8 -m venv venv
. ./venv/bin/activate
pip install -r requirements.txt
export PYTHONPATH=<location_of_backdoored_tvm>/python:$PYTHONPATH # add backdoored tvm
python3 test_resnet18.py