How to remove some data in tensor?

Hello,
I want to remove the number which less than threshold in a tensor and generate a new tensor. How should I write this situation?
Thanks