move skip unwanted layer to recursive function get_valid_sources
move skip unwanted layer to recursive function get_valid_sources

jwsmithers/lwtnn,jwsmithers/lwtnn,lwtnn/lwtnn,lwtnn/lwtnn,lwtnn/lwtnn,jwsmithers/lwtnn