added inplace ops with tensor