Skip to content

lack of codes: ModuleNotFoundError: No module named 'backpack' #2

@NKUShaw

Description

@NKUShaw

I tried to run this script which contains:

rounds=2
ifeat_resdir=coloredmnist025_ifeat_r${rounds}

CUDA_VISIBLE_DEVICES=0 python run_exp.py --verbose True --steps 0 --freeze_featurizer True --dataset coloredmnist025 --eval_steps 1  --methods ifeat --rounds ${rounds} --save_dir ${ifeat_resdir}

but got the error which said:
Traceback (most recent call last):
File "run_exp.py", line 9, in
from backpack import backpack, extend
ModuleNotFoundError: No module named 'backpack'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions