Skip to content

Commit

Permalink
Test with tf.map_fn
Browse files Browse the repository at this point in the history
  • Loading branch information
bhack committed May 14, 2020
1 parent fe84ea9 commit 078b019
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tensorflow/python/autograph/impl/api_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def test_converted_call_functools_partial_decorated(self):

@api.convert(recursive=DEFAULT_RECURSIVE)
def test_call_partial():
return functools.partial(test_fn, constant_op.constant(-1), y=-2, z=-3)
fn = functools.partial(test_fn)
return tf.map_fn(fn, constant_op.constant(-1), y=-2, z=-3)

def test_fn(x, y, z):
if x < 0:
Expand Down

0 comments on commit 078b019

Please sign in to comment.