NameError: name 'torch' is not defined

you can use the option execution enviroment → change type of execution enviroment → aceleration by hardaware : none