-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not tracking tensors returned by tf.reshape()
for data sources other than MNIST
#195
Comments
Add this test works: I believe the problem is that the data sources are hard-coded: Lines 606 to 610 in ddba21e
|
tf.reshape()
tf.reshape()
for data sources other than MNIST
But, it could also have something to do with the way other APIs are being constructed. For example, the points-to set for |
Looking at the summary of ML/com.ibm.wala.cast.python.ml/data/tensorflow.xml Lines 379 to 388 in ddba21e
That may mean if the data source has something wrong with it, any copied data would also have the problem. Thus, the problem may not be with the |
That being said, |
Thus, my best guess is that the problem involves a combination of the (new) XML summaries and the hard-coded initialization of the dataflow. |
Workaround for wala#195.
Sorry for the large sync up. I'll try to summarize the changes as best as I can: - Start a `CODEOWNERS` file (please modify if desired). - Add dependabot build schedule. - Move Black out of spotless and into the build (much faster; spotless support for Black is not working well). - Various formatting fixes as a result of expanding spotless to XML files and others. - Make other metadata consistent with "recent" change to Java upgrade. - `PYTHONPATH` module fixes (e.g., #209). - Workaround #195. - Enhance TF2 tests: fail if we don't have a node for a function under test (was passing before). Because the ML tests are still on Jython 2 and modules aren't supported there, we have a bunch of tests to consider. - Initialization script enhancements (e.g., #202). - Add `reshape()` parsing (this causes a need for a workaround after exposing a bug). - Some dependency version upgrades. - Various entry point additions, e.g., `abseil`, `click`. - Add missing initialization files (`__init__.py`). --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Consider the following code:
t2
should be a (reshaped) tensor, and the argument tof()
should also be tracked as a tensor. Instead, I'm seeing this tensor analysis result:In the IR,
v245
refers to the return value oftf.ones()
. That's the only tensor in this file.Regression
tf.reshape()
, but it callscopy_data()
instead ofread_data()
.tf.reshape()
in the code, stemming from theMethodReference
fieldcom.ibm.wala.cast.python.ml.client.PythonTensorAnalysisEngine.reshape
.The text was updated successfully, but these errors were encountered: