Skip to content

Commit

Permalink
Additional test case for #265.
Browse files Browse the repository at this point in the history
Try a list not using a list literal.
  • Loading branch information
khatchad committed Oct 11, 2023
1 parent 07cce8e commit 35ab486
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import tensorflow as tf


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


list = list()

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

for element in list:
c = add(element, element)
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 @@ -4309,6 +4309,14 @@ public void testHasLikelyTensorParameter145() throws Exception {
public void testHasLikelyTensorParameter146() throws Exception {
testHasLikelyTensorParameterHelper(false, false);
}

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

// TODO: Test arbitrary expression.
// TODO: Test cast/assert statements?
Expand Down

0 comments on commit 35ab486

Please sign in to comment.