torch: toggle on/off once

Change-Id: I16c2923912fbc459b6761a9a0d80f5bbea3aaf39