IBM/simulai

SymbolicOperator should support to receive def functions.

Closed this issue · 1 comments

For example, the expression

f"D(u, t) - alpha*func(t)"

can replace the string 'func' by the def function:

def func(t:torch.Tensor) -> torch.Tensor:
    """ many processes
    return output

It works for functions constructed using PyTorch (see commit bb20629)