Skip to content

Instantly share code, notes, and snippets.

@NeoChaos12
Created June 18, 2021 13:46
Show Gist options
  • Save NeoChaos12/ae15208fc7455d64686a704f4d25a9d6 to your computer and use it in GitHub Desktop.
Save NeoChaos12/ae15208fc7455d64686a704f4d25a9d6 to your computer and use it in GitHub Desktop.
======================================================================
ERROR: test_feed_forward (test_darts_search_space.DartsDartsIntegrationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bansala/thesis/NASLib/tests/test_darts_search_space.py", line 52, in test_feed_forward
final_arch = self.optimizer.get_final_architecture()
File "/home/bansala/thesis/NASLib/naslib/optimizers/oneshot/darts/optimizer.py", line 182, in get_final_architecture
graph.prepare_discretization()
File "/home/bansala/thesis/NASLib/naslib/search_spaces/darts/graph.py", line 216, in prepare_discretization
self.update_nodes(_truncate_input_edges, scope=self.OPTIMIZER_SCOPE, single_instances=True)
File "/home/bansala/thesis/NASLib/naslib/search_spaces/core/graph.py", line 690, in update_nodes
update_func(node=node, in_edges=in_edges, out_edges=out_edges)
File "/home/bansala/thesis/NASLib/naslib/search_spaces/darts/graph.py", line 504, in _truncate_input_edges
data.alpha[1] = -float("Inf") # Zero op should never be max alpha
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
======================================================================
ERROR: test_feed_forward (test_darts_search_space.DartsGdasIntegrationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bansala/thesis/NASLib/tests/test_darts_search_space.py", line 75, in test_feed_forward
final_arch = self.optimizer.get_final_architecture()
File "/home/bansala/thesis/NASLib/naslib/optimizers/oneshot/darts/optimizer.py", line 182, in get_final_architecture
graph.prepare_discretization()
File "/home/bansala/thesis/NASLib/naslib/search_spaces/darts/graph.py", line 216, in prepare_discretization
self.update_nodes(_truncate_input_edges, scope=self.OPTIMIZER_SCOPE, single_instances=True)
File "/home/bansala/thesis/NASLib/naslib/search_spaces/core/graph.py", line 690, in update_nodes
update_func(node=node, in_edges=in_edges, out_edges=out_edges)
File "/home/bansala/thesis/NASLib/naslib/search_spaces/darts/graph.py", line 504, in _truncate_input_edges
data.alpha[1] = -float("Inf") # Zero op should never be max alpha
RuntimeError: a view of a leaf Variable that requires grad is being used in an in-place operation.
======================================================================
FAIL: test_update (test_darts_search_space.DartsGdasIntegrationTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bansala/thesis/NASLib/tests/test_darts_search_space.py", line 70, in test_update
self.assertAlmostEqual(stats[2].detach().cpu().numpy(), 1.7674, places=3)
AssertionError: array(2.0554132, dtype=float32) != 1.7674 within 3 places (0.2880132461547851 difference)
======================================================================
FAIL: test_get_config_from_args_config_args (test_utils.UtilsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bansala/thesis/NASLib/tests/test_utils.py", line 31, in test_get_config_from_args_config_args
config = utils.get_config_from_args(args)
File "/home/bansala/thesis/NASLib/naslib/utils/utils.py", line 162, in get_config_from_args
config.model_path = args.model_path
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/fvcore/common/config.py", line 148, in __setattr__
super().__setattr__(name, val)
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/yacs/config.py", line 158, in __setattr__
type(value), name, _VALID_TYPES
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/yacs/config.py", line 521, in _assert_with_logging
assert cond, msg
AssertionError: Invalid type <class 'NoneType'> for key model_path; valid types = {<class 'float'>, <class 'tuple'>, <class 'int'>, <class 'str'>, <class 'bool'>, <class 'list'>}
======================================================================
FAIL: test_get_config_from_args_config_file (test_utils.UtilsTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/bansala/thesis/NASLib/tests/test_utils.py", line 18, in test_get_config_from_args_config_file
config = utils.get_config_from_args(args)
File "/home/bansala/thesis/NASLib/naslib/utils/utils.py", line 162, in get_config_from_args
config.model_path = args.model_path
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/fvcore/common/config.py", line 148, in __setattr__
super().__setattr__(name, val)
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/yacs/config.py", line 158, in __setattr__
type(value), name, _VALID_TYPES
File "/home/bansala/miniconda3/envs/naslib/lib/python3.7/site-packages/yacs/config.py", line 521, in _assert_with_logging
assert cond, msg
AssertionError: Invalid type <class 'NoneType'> for key model_path; valid types = {<class 'float'>, <class 'tuple'>, <class 'int'>, <class 'str'>, <class 'bool'>, <class 'list'>}
----------------------------------------------------------------------
Ran 14 tests in 85.804s
FAILED (failures=3, errors=2)
device: cpu
device: cpu
device: cpu
device: cpu
device: cpu
device: cpu
Namespace(config_file='/home/bansala/thesis/NASLib/naslib/benchmarks/predictors/predictor_config.yaml', dist_backend='nccl', dist_url='tcp://127.0.0.1:8888', eval_only=False, gpu=None, model_path=None, multiprocessing_distributed=False, opts=['seed', '1', 'search.epochs', '42', 'out_dir', 'tmp/util_test'], rank=0, resume=False, seed=0, world_size=1)
Namespace(config_file='tests/assets/config.yaml', dist_backend='nccl', dist_url='tcp://127.0.0.1:8888', eval_only=False, gpu=None, model_path=None, multiprocessing_distributed=False, opts=[], rank=0, resume=True, seed=0, world_size=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment