-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial infrastructure to deal with multiple input test files. * Simply copy testSameFileSameName() tests. Put them in different files. * Make variable final. * Add test case with class with same name. * More tests. * Test varying hybridizations. * Reuse ctor. * Test varying tensor parameterization. * Change the way we find FUTs. * Fix spelling. * Test normal functions with same attributes. * Test normal functions with different attributes. * Add containing module name to FUT. * More tests with varying attributes. * Ensure the FUT is non-null. Not sure if this will appease the CI or not.
- Loading branch information
Showing
33 changed files
with
501 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
...cuny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test: | ||
|
||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b() |
8 changes: 8 additions & 0 deletions
8
...cuny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test2: | ||
|
||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test2().b() |
1 change: 1 addition & 0 deletions
1
...hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
10 changes: 10 additions & 0 deletions
10
...ny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName10/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tensorflow as tf | ||
|
||
|
||
@tf.function | ||
def b(a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b(tf.ones([1, 2])) |
10 changes: 10 additions & 0 deletions
10
...ny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName10/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tensorflow as tf | ||
|
||
|
||
@tf.function | ||
def b(a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b(5) |
1 change: 1 addition & 0 deletions
1
...bridize.tests/resources/HybridizeFunction/testDifferentFileSameName10/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
6 changes: 6 additions & 0 deletions
6
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName2/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def b(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b() |
6 changes: 6 additions & 0 deletions
6
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName2/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def b(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName2/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
8 changes: 8 additions & 0 deletions
8
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName3/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test: | ||
|
||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b() |
8 changes: 8 additions & 0 deletions
8
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName3/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test: | ||
|
||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName3/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName4/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test: | ||
|
||
@tf.function | ||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b() |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName4/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test2: | ||
|
||
@tf.function | ||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test2().b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName4/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName5/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test: | ||
|
||
@tf.function | ||
def b(self, a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b(tf.ones([1, 2])) |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName5/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test2: | ||
|
||
@tf.function | ||
def b(self, a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test2().b(tf.ones([1, 2])) |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName5/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName6/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test: | ||
|
||
@tf.function | ||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b() |
8 changes: 8 additions & 0 deletions
8
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName6/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
class Test2: | ||
|
||
def b(self): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test2().b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName6/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName7/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test: | ||
|
||
@tf.function | ||
def b(self, a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test().b(tf.ones([1, 2])) |
12 changes: 12 additions & 0 deletions
12
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName7/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import tensorflow as tf | ||
|
||
|
||
class Test2: | ||
|
||
@tf.function | ||
def b(self, a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
Test2().b(5) |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName7/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
10 changes: 10 additions & 0 deletions
10
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName8/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tensorflow as tf | ||
|
||
|
||
@tf.function | ||
def b(a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b(5) |
10 changes: 10 additions & 0 deletions
10
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName8/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tensorflow as tf | ||
|
||
|
||
@tf.function | ||
def b(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName8/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
10 changes: 10 additions & 0 deletions
10
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName9/in/A.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import tensorflow as tf | ||
|
||
|
||
@tf.function | ||
def b(a): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b(5) |
6 changes: 6 additions & 0 deletions
6
...uny.hunter.hybridize.tests/resources/HybridizeFunction/testDifferentFileSameName9/in/B.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
def b(): | ||
pass | ||
|
||
|
||
if __name__ == '__main__': | ||
b() |
1 change: 1 addition & 0 deletions
1
...ybridize.tests/resources/HybridizeFunction/testDifferentFileSameName9/in/requirements.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
tensorflow==2.9.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.