Finite differences can now handle any tensor inputs.