Sure something like that will work:
import torch

inp = torch.tensor([[[[0., 0., 1.],
          [0., 0., 1.],
          [0., 1., 0.],
          [0., 1., 0.],
          [0., 0., 1.],
          [0., 0., 1.],
          [0., 1., 0.],
          [0., 0., 1.],
          [1., 0., 0.],
          [0., 0., 1.]]]])

to_remove_line = torch.tensor([0., 1., 0.])


to_remove = (inp == to_remove_line).all(-1)
res = inp[to_remove.logical_not()]

print(res)


Note that the == can be relaxed if you’re using floating points by checking that the difference is below a given threshold.