Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
202 commits
Select commit Hold shift + click to select a range
f81a9c2
Add assertions for tensor shapes.
khatchad Jul 11, 2025
6185d5a
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 14, 2025
81cfcb6
Set expected tensors to the correct values.
khatchad Jul 14, 2025
c88367b
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 16, 2025
464a49e
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 16, 2025
84afd02
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 16, 2025
3ec08f6
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 16, 2025
d4d2d23
Remove the hard-coded MNIST input.
khatchad Jul 17, 2025
dd7e9ba
This comment seems incorrect.
khatchad Jul 18, 2025
cc1c191
Additional assertions.
khatchad Jul 18, 2025
30b626b
Progress.
khatchad Jul 18, 2025
96a0c4e
Progress.
khatchad Jul 18, 2025
8e10b2c
Add more shape checks.
khatchad Jul 21, 2025
cc07365
Progress.
khatchad Jul 21, 2025
6423d8d
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 21, 2025
278abab
Progress.
khatchad Jul 21, 2025
955fcf1
Progress.
khatchad Jul 21, 2025
a97a751
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Jul 22, 2025
7a16f49
Add tests
khatchad Jul 22, 2025
b5e1802
Add comment.
khatchad Jul 22, 2025
cb03d9e
Add launch config.
khatchad Jul 22, 2025
3122539
Progress.
khatchad Jul 30, 2025
72337c9
Progress.
khatchad Jul 31, 2025
e3d09c4
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 1, 2025
ec99b02
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 1, 2025
5f4184c
Remove arguments from test.
khatchad Aug 1, 2025
759245d
Fix test.
khatchad Aug 1, 2025
b40a6cc
Cleanup.
khatchad Aug 1, 2025
7d894dd
Inline variable.
khatchad Aug 1, 2025
9baab67
Throw an exception on unknown dtypes.
khatchad Aug 1, 2025
42f7d9b
Finish the float32 dtype.
khatchad Aug 1, 2025
4a60ffd
Cleanup.
khatchad Aug 1, 2025
61e6617
Use constant for dtype in tests.
khatchad Aug 1, 2025
5047844
Add notes.
khatchad Aug 8, 2025
e9969bd
Format.
khatchad Aug 13, 2025
ad5993c
Remove TODO.
khatchad Aug 13, 2025
969319b
Move TODO.
khatchad Aug 13, 2025
fc5b67c
Inline variable.
khatchad Aug 13, 2025
24196c1
Inline variable.
khatchad Aug 13, 2025
c5f30e1
Alter log.
khatchad Aug 13, 2025
58f65f4
Add test.
khatchad Aug 13, 2025
1bbccc8
Format.
khatchad Aug 13, 2025
addd7d0
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 14, 2025
b6a5e1b
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 14, 2025
ba98228
Inline local variable.
khatchad Aug 14, 2025
08b9857
Only add if it's constant.
khatchad Aug 14, 2025
d6d1f6d
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 18, 2025
ef7d719
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 18, 2025
14d6117
Hoist variable.
khatchad Aug 18, 2025
d09c1ea
Rename variable.
khatchad Aug 18, 2025
d29c75d
Don't use wildcard in expression.
khatchad Aug 18, 2025
1db0c9c
Start `tf.constant()` inference.
khatchad Aug 18, 2025
c8e5d40
More defensive.
khatchad Aug 18, 2025
2cfa1d3
Update tests.
khatchad Aug 18, 2025
6d93066
Inline local variables.
khatchad Aug 18, 2025
54ccbb8
Test updates.
khatchad Aug 18, 2025
4ad808b
Format.
khatchad Aug 19, 2025
ad2b486
Format and elaborate comments.
khatchad Aug 19, 2025
1ee6df1
Throw an exception if there is an explicit shape argument.
khatchad Aug 19, 2025
d048019
Get rid of failures.
khatchad Aug 19, 2025
c97cf36
Turn generator processing into a class hierarchy.
khatchad Aug 19, 2025
5cc6fb8
Split comment.
khatchad Aug 19, 2025
cff454c
Factor out some common code.
khatchad Aug 19, 2025
5c933ad
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 20, 2025
17e64d2
Simplify test code.
khatchad Aug 20, 2025
f1c83d0
Add assertions.
khatchad Aug 20, 2025
2623d48
Simplify test code.
khatchad Aug 20, 2025
c11f9ce
Progress.
khatchad Aug 20, 2025
fcf030b
Use doubles.
khatchad Aug 20, 2025
5ceefb8
Rename.
khatchad Aug 20, 2025
7eeed8d
Factor out common code for shapes.
khatchad Aug 20, 2025
7b2dbae
Add method "implementations."
khatchad Aug 20, 2025
1509bf4
Add tests.
khatchad Aug 20, 2025
fc2d4bc
Add file.
khatchad Aug 20, 2025
a7c09e0
Add comments.
khatchad Aug 20, 2025
6c88c94
Remove TODO.
khatchad Aug 21, 2025
1088488
Comments and variable rename.
khatchad Aug 21, 2025
bc446c8
Add value number for dtype.
khatchad Aug 21, 2025
ea5205d
Return -1 for unsupported dtype arguments.
khatchad Aug 21, 2025
e161461
Rename variables.
khatchad Aug 21, 2025
6277b7c
Add docs.
khatchad Aug 21, 2025
9437259
Extract method refactoring.
khatchad Aug 21, 2025
ea949e7
Pull up method refactoring.
khatchad Aug 21, 2025
ff68dae
Extract constant refactoring.
khatchad Aug 21, 2025
0cf87cd
Format.
khatchad Aug 21, 2025
772319f
Fix https://github.com/wala/ML/issues/298.
khatchad Aug 21, 2025
a0277ee
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 21, 2025
fc152a6
Encapsulate field refactoring.
khatchad Aug 26, 2025
c60f50a
Add assertions.
khatchad Aug 26, 2025
9060c0c
Shorten.
khatchad Aug 26, 2025
a1d1b9c
Fix comment.
khatchad Aug 26, 2025
613fbf5
Pull-up method refactoring.
khatchad Aug 26, 2025
2e1c5e8
Sort members refactoring.
khatchad Aug 26, 2025
8b72fe5
Add docs.
khatchad Aug 26, 2025
b38d460
Extract variable refactoring.
khatchad Aug 26, 2025
b2f814f
Progress.
khatchad Aug 26, 2025
949eca2
Add comment.
khatchad Aug 26, 2025
1210fbf
New test.
khatchad Aug 28, 2025
8a05bc5
New line.
khatchad Aug 28, 2025
fc13736
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Aug 28, 2025
d7c7b20
Format.
khatchad Aug 28, 2025
f45d1d4
Rename method.
khatchad Aug 28, 2025
8cd367e
Fix test.
khatchad Aug 28, 2025
4450b92
Revert "Rename method."
khatchad Aug 28, 2025
c92b5b2
Add metadata.
khatchad Sep 5, 2025
f3c63ce
New test.
khatchad Sep 5, 2025
fc8f4ba
Cleanup.
khatchad Sep 5, 2025
3a332c1
New test.
khatchad Sep 5, 2025
b91b2f1
Progress.
khatchad Sep 5, 2025
ada8ff6
Add test file.
khatchad Sep 5, 2025
7c28fdd
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Sep 8, 2025
1781fbc
Black.
khatchad Sep 8, 2025
4e46879
Add asserts.
khatchad Sep 8, 2025
c1db8f2
Add another test case.
khatchad Sep 8, 2025
02acac2
Simplify.
khatchad Sep 8, 2025
be01c4d
Progress.
khatchad Sep 8, 2025
cf80b59
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Sep 9, 2025
db020e0
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Sep 9, 2025
ecf7af9
New test.
khatchad Sep 9, 2025
86770a3
Add doc and change method names.
khatchad Sep 9, 2025
1b88e96
More tests.
khatchad Sep 9, 2025
288ded8
Remove test file.
khatchad Sep 9, 2025
911277e
Rename.
khatchad Sep 11, 2025
09a479c
Separate.
khatchad Sep 11, 2025
74b0ef4
Use API.
khatchad Sep 11, 2025
6b098bd
Add dtype inference.
khatchad Sep 11, 2025
13c7ec0
Update tests.
khatchad Sep 11, 2025
216bb9a
Add test for varying dtypes.
khatchad Sep 11, 2025
515fa5b
Add tests for https://github.com/wala/ML/issues/308.
khatchad Sep 12, 2025
d84b52a
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Sep 12, 2025
0f432bf
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 14, 2025
11e08ef
Make more general.
khatchad Oct 16, 2025
d04962d
Add asserts.
khatchad Oct 16, 2025
4a001f0
Add TODO.
khatchad Oct 16, 2025
c48fb08
Move field reference to types class?
khatchad Oct 16, 2025
53f14ca
Remove author.
khatchad Oct 16, 2025
8e6534c
Fix more copyrights.
khatchad Oct 16, 2025
9f6624a
Remove unnecessary cast.
khatchad Oct 16, 2025
2ebddc1
Suppress warnings.
khatchad Oct 16, 2025
cfc19ad
Enable all warnings and show deprecated usage.
khatchad Oct 16, 2025
acf54ca
Remove (seemingly) unused property.
khatchad Oct 16, 2025
9b0a010
Use the standard main method signature.
khatchad Oct 16, 2025
ab22b00
Remove redundant cast.
khatchad Oct 16, 2025
e2d337b
Suppress warnings.
khatchad Oct 16, 2025
013e458
Upgrade to Java 25.
khatchad Oct 16, 2025
e5f9a50
Fix more copyrights.
khatchad Oct 16, 2025
de0b88f
Use Java 25 on the CI.
khatchad Oct 16, 2025
d380ed1
Add back casts.
khatchad Oct 16, 2025
6c9f645
No periods.
khatchad Oct 16, 2025
49fddfd
Bump org.apache.maven.plugins:maven-shade-plugin from 3.6.0 to 3.6.1
dependabot[bot] Sep 15, 2025
0d5927d
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 16, 2025
e5f4a1d
More metadata for Java 25.
khatchad Oct 16, 2025
80d6ed4
Generalize dtype literal lookup and comparison.
khatchad Oct 16, 2025
9cc1b80
Fix exception.
khatchad Oct 16, 2025
6cdaed0
Fix class name.
khatchad Oct 16, 2025
ddf134c
No period.
khatchad Oct 16, 2025
eebaa5f
Capitalize.
khatchad Oct 16, 2025
31e9949
Handle `tf.random.uniform`.
khatchad Oct 16, 2025
7f62689
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 16, 2025
fdb8738
Fix method name.
khatchad Oct 16, 2025
9e61fc1
Remove unused constants.
khatchad Oct 16, 2025
c1bfcc6
Metadata.
khatchad Oct 16, 2025
60a88c3
Zeros.
khatchad Oct 17, 2025
aa6d71b
Zeros like.
khatchad Oct 17, 2025
2cc65b9
Fix test.
khatchad Oct 17, 2025
317bd3b
Initial support for `tf.fill` operation in TensorFlow models.
khatchad Oct 20, 2025
5994380
Additional test for `tf.fill` operation in TensorFlow 2 models.
khatchad Oct 20, 2025
8b37b8d
Fix test for `tf.fill()`.
khatchad Oct 20, 2025
e265d70
Format.
khatchad Oct 20, 2025
8e6b4b2
Handle `tf.random.normal()` calls.
khatchad Oct 20, 2025
87cc3f3
Fix docs.
khatchad Oct 20, 2025
c54739d
Additional test for `tf.random.normal()`.
khatchad Oct 20, 2025
6dfa1a8
Update test.
khatchad Oct 20, 2025
2344618
Handle multiple imports.
khatchad Oct 20, 2025
2ce5856
Progress.
khatchad Oct 21, 2025
689829e
Format.
khatchad Oct 21, 2025
a442bdc
Simplify `tf.range()` handling.
khatchad Oct 21, 2025
a3ae6f9
Simplify code.
khatchad Oct 21, 2025
e513cf9
Simplify.
khatchad Oct 21, 2025
b897827
Fix number of parameters for `tf.range`.
khatchad Oct 21, 2025
319eed7
Handle multiple parameters for `tf.range()`.
khatchad Oct 21, 2025
f5b0461
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 21, 2025
a38c764
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 21, 2025
41950e9
Remove assertions for now.
khatchad Oct 23, 2025
69a0a89
Simplify.
khatchad Oct 23, 2025
b3f9437
Add logging.
khatchad Oct 24, 2025
1505689
Add pretty printing.
khatchad Oct 24, 2025
a867dae
Alter logging.
khatchad Oct 24, 2025
31c2acb
Update test to reflect accurate tensor dimensions.
khatchad Oct 27, 2025
d6e2a57
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 27, 2025
c8395e6
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 27, 2025
c6683f2
Fix `tf.range()`.
khatchad Oct 27, 2025
462ce2d
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 27, 2025
48b7d76
Redo number of parameters.
khatchad Oct 28, 2025
dbfad35
Revert "Remove assertions for now."
khatchad Oct 28, 2025
65a947b
Properly get value numbers for Range parameters.
khatchad Oct 28, 2025
b606645
Fix filename to match test name.
khatchad Oct 28, 2025
d1e2ec5
Can't use declared number of positional parameters.
khatchad Oct 28, 2025
6c7e668
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 28, 2025
865c17d
Merge branch 'master' into 267-initial-tensor-dimensions-arent-always…
khatchad Oct 28, 2025
8dda029
Add defensive code.
khatchad Oct 28, 2025
debb869
Initial work on dtype argument for tf.range().
khatchad Oct 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion com.ibm.wala.cast.python.ml.test/.classpath
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<classpath>
<classpathentry kind="src" output="target/test-classes" path="source">
<attributes>
<attribute name="test" value="true"/>
<attribute name="optional" value="true"/>
<attribute name="maven.pomderived" value="true"/>
<attribute name="test" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-25">
<attributes>
<attribute name="module" value="true"/>
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
eclipse.preferences.version=1
encoding//src/main/resources=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
encoding/source=UTF-8
Loading
Loading