alpha-beta-CROWN
alpha-beta-CROWN copied to clipboard
How to run abcrown.py from inside Python?
Hi, I can run abcrown.py by following your tutorial_examples and calling it like this from the Linux command line:
python abcrown.py --config exp_configs/tutorial_examples/cifar_resnet_2b.yaml
But is there a recommended way to call it from inside Python? I see that abcrown.py has these lines at the end:
if __name__ == '__main__':
abcrown = ABCROWN(args=sys.argv[1:])
abcrown.main()
When I try to run it from inside python, __name__
is not __main__
and sys.argv
is not set.
Is there a way to call it from another python module and capture its outputs?