Open
Description
Related to #91.
Consider the following code:
import tensorflow as tf
def mama(fun):
def wrapper_fun(*args, **kwargs):
assert isinstance(args[0], tf.Tensor)
fun(*args, **kwargs)
return wrapper_fun
@mama
def f(x):
assert isinstance(x, tf.Tensor)
f(tf.constant(1))
Currently, Ariadne doesn't expand *args
and **kwargs
, so we miss the tensor parameter x
of `().