sparse_coding_torch