Skip to content

Enable SGD training tests - #4474

Merged
phoenix-meadowlark merged 4 commits into
iree-org:mainfrom
phoenix-meadowlark:training-tests
Jan 12, 2021
Merged

phoenix-meadowlark merged 4 commits into
iree-org:mainfrom
phoenix-meadowlark:training-tests

Conversation

@phoenix-meadowlark

Copy link
Copy Markdown
Contributor
  • Explicitly convert inputs to f32.
  • Compare model weights and biases across backends.
  • Add CMake configuration for testing in OSS.

I am adding these tests in OSS before we figure out the long-term structure for the e2e CMake build since they cannot be enabled internally at this time.

@phoenix-meadowlark phoenix-meadowlark added the integrations/tensorflow TensorFlow model import and conversion label Jan 12, 2021
@google-cla google-cla Bot added the cla: yes label Jan 12, 2021
string(REPLACE "::" "/" _PACKAGE_PATH ${_PACKAGE_NS})
string(REPLACE ".py" "" _name ${filename})

set(_name "${_PACKAGE_PATH}/${_name}__${target_backend}")

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was curious about this naming, so I looked at the presubmit logs to see the full list of targets. I don't see these new tests there though? And the existing tests have names like tensorflow_e2e__resource_ops_test.py__iree_vmla with .py included in the target names, unlike here?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no unity in how were creating these targets right now. I like being able to select tests by using the directory structure (that's how they were laid out for Bazel). tensorflow_e2e is from the rule Stella created in integrations/tensorflow/e2e/CMakeLists.txt. The idea here was to roughly match iree_py_test's convention.

The targets weren't showing up because the test invocation was using tensorflow_e2e. Should be updated correctly now!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, test names matching directory structure is helpful :D

@phoenix-meadowlark
phoenix-meadowlark merged commit 3d6acd1 into iree-org:main Jan 12, 2021
@rsuderman rsuderman mentioned this pull request Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integrations/tensorflow TensorFlow model import and conversion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants