Yes, you’ll basically want to get access to the indices that will sort the tensor, choose the 10 lowest, and then use those to index into your tensor and zero them out.
x = torch.randn(100)

# Get the indices that would sort x (in terms of abs value)
indices = torch.argsort(x.abs())

# choose the first 10 
indices_smallest = indices[:10]

# Zero those positions out
x[indices] = 0.0