Closed akhauriyash closed 1 year ago
Hi @akhauriyash,
When we initialize the search space, we initialize a super graph, and when we call the function set_spec(hash)
, we update the edge data (to build operations), which is used in the forward pass of the architecture. You can look at search_spaces/core/graph.py for a detailed view.
Currently, we don't provide support to extract a pure pytorch model from a nasbench graph. But the nasbench graph is also extended from pytorch model, so you can train it like how you would train a other pytorch models. You can still use it to do a forward pass and run a backward pass through the network. If you are interested in viewing how the model looks, you can call the function convert_naslib_to_genotype
to view how the Genotype for normal and reduction cell looks like.
Thanks, Abhash
Thank you for your response! I appreciate it.
For a hash, say
The adjacency matrix and other properties of the model 'nbg' does not change.
How can I initialize a NASBench-301 model with NASLib such that it can be trained? Also, is it possible to extract a pure PyTorch model from the nbg graph?