Tensorize in multithreaded environment