You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now developers need to manually specify the input shape metadata to generate the input tensors.
I am thinking if we could use decorators to make this process easier and more user-friendly.
Old style:
def get_input_iter(self) -> Generator:
shape_a = range(x, y)
shape_b = range(m, n)
for a in shape_a:
for b in shape_b:
yield generate_input(a, b)
New style:
@given(
a=st.integers(min_value=x, max_value=y),
b=st.integers(min_value=m, max_value=n),
)
def get_input(self, a, b):
return generate_input(a, b)
The text was updated successfully, but these errors were encountered:
Right now developers need to manually specify the input shape metadata to generate the input tensors.
I am thinking if we could use decorators to make this process easier and more user-friendly.
Old style:
New style:
The text was updated successfully, but these errors were encountered: