added torch hardware support