support passing callable recipes (so not limited to functions within the module)
@@ -120,6 +120,9 @@ def make_confidence_report_bundled(filepath, train_start=TRAIN_START,
"""
# Avoid circular import
from cleverhans import attack_bundling
+ if callable(recipe):
+ run_recipe = recipe
+ else:
run_recipe = getattr(attack_bundling, recipe)
# Set logging level to see debug information
