Hi, I want to replace all elements in a tensor that are equal  to some values. In NumPy, I can simply do arr[np.isin(arr, some_values)] where some_values here is a list. Below can achieve what I need but is there any way not to use the for loop?
for v in [some_values]:
    arr[arr == v] = 0