Hello,
I would suggest reading about Variables and Tensors. Basically, only Variables have the .data property (not Tensors). “.data” is the Tensor for a given Variable.
So you should be able to just do
dht = DHT2d(input.numpy())
Lemme know if that fixes your issue.