Download data/attacks/utils.py from introvoyz041/vafa: direct link, hf CLI and curl.
- Browser
- Download file 451 Bytes
-
https://huggingface.co/datasets/introvoyz041/vafa/resolve/main/data/attacks/utils.py
- Command line
-
hf download hf://datasets/introvoyz041/vafa/data/attacks/utils.py
-
curl -L -o utils.py https://huggingface.co/datasets/introvoyz041/vafa/resolve/main/data/attacks/utils.py
451 Bytes
| def get_target_labels(orig_labels=None, random=False, orig_targ_labels_dict={}): | |
| raise NotImplementedError(f"'get_target_labels()' function is yet to be implemented. ") | |
| if random and not orig_targ_labels_dict: raise ValueError("Arguments 'random' and 'orig_targ_labels_dict' are mutually exclusive. Use either of them.") | |
| if random: | |
| pass | |
| if not orig_targ_labels_dict: # if dict is not empty | |
| pass | |