Skip to content

Commit

Permalink
Additional test case for
Browse files Browse the repository at this point in the history
#265.

Send the entire list.
  • Loading branch information
khatchad committed Oct 11, 2023
1 parent f70b275 commit 07cce8e
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import tensorflow as tf


def add(a, b):
return a + b


list = [tf.ones([1, 2]), tf.ones([2, 2])]

c = add(list, list)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tensorflow==2.9.3
Original file line number Diff line number Diff line change
Expand Up @@ -4302,6 +4302,14 @@ public void testHasLikelyTensorParameter145() throws Exception {
testHasLikelyTensorParameterHelper();
}

/**
* Test for https://github.com/ponder-lab/Hybridize-Functions-Refactoring/issues/265.
*/
@Test
public void testHasLikelyTensorParameter146() throws Exception {
testHasLikelyTensorParameterHelper(false, false);
}

// TODO: Test arbitrary expression.
// TODO: Test cast/assert statements?
// TODO: https://www.tensorflow.org/guide/function#pass_tensors_instead_of_python_literals. How do we deal with union types? Do we want
Expand Down

0 comments on commit 07cce8e

Please sign in to comment.