My intention is to use pywavelet on a tensor in tensorflow, with the sentence
pywt.dwt(input,'db1')
The error was
Cannot convert DType to numpy.dtype
Input is a Tensor("Reshape_18:0", shape=(?, 28, 28, 1), dtype=float32)
from MNIST dataset.
I try with the sentence pywt.dwt(input.dtype.as_numpy_dtype,'db1')
and the error "invalid array_struct".