Fix m8 build by removing torch from dotcase

Change-Id: I2ba9ea239073076acba7d1aa782c95e833e58558