yuhuixu1993 / PC-DARTS

PC-DARTS:Partial Channel Connections for Memory-Efficient Differentiable Architecture Search

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About "replace input_search, target_search = next(iter(valid_queue))"

swlzq opened this issue · comments

commented

Thank you for your release code! I noticed that you replaced "input_search, target_search = next(iter(valid_queue))", why it is much faster? And why the code in "try" is "next(valid_queue_iter)" instead of "next(valid_queue)"? Hope for your reply!
try:
input_search, target_search = next(valid_queue_iter)
except:
valid_queue_iter = iter(valid_queue)
input_search, target_search = next(valid_queue_iter)