Skip to content

Moved CompiledModule and BackendInfo to tf_utils.py - #2509

Merged
phoenix-meadowlark merged 7 commits into
iree-org:mainfrom
phoenix-meadowlark:tf-utils-refactor
Jul 13, 2020
Merged

phoenix-meadowlark merged 7 commits into
iree-org:mainfrom
phoenix-meadowlark:tf-utils-refactor

Conversation

@phoenix-meadowlark

Copy link
Copy Markdown
Contributor
  • BackendInfo and all classes related to CompiledModule are all moved to tf_utils.py as they have functionality outside of testing.
  • _IreeModuleInstance and _TfModuleInstance are both subsumed into IreeCompiledModule and TfCompiledModule respectively.
    • This provides a simple high level API for compiling tf.Modules in Python via IreeCompiledModule.compile(...) and then directly using them for computation.
    • The ability to create reinitialized instances is now provided via ComiledModule.from_existing(module).
    • A unit test of this functionality is also added.

@phoenix-meadowlark phoenix-meadowlark added integrations/tensorflow TensorFlow model import and conversion integrations Relating to high-level frontend integrations labels Jul 13, 2020
@phoenix-meadowlark
phoenix-meadowlark merged commit 57a9ae3 into iree-org:main Jul 13, 2020
@ScottTodd ScottTodd mentioned this pull request Jul 14, 2020
copybara-service Bot pushed a commit that referenced this pull request Jul 14, 2020
* f4f2fec Update Bazel version in docs workflow (#2511)
* 19e6574 Add lint action for PR title length (#2481)
* 57a9ae3 Moved CompiledModule and BackendInfo to `tf_utils.py` (#2509)
* 7d50357 Update Bazel to 3.3.1 (#2496)
* afa7d8e [ModelBuilder] Fix leak when using llvm::createLowerMatrixIntrinsicsPass (#2499)
* 90ffb71 [ci] Enable build tests for Android cross compilation (#2507)
* 62490cb Add Bazel 3.3.1 to docker images (#2497)
* 028a883 [ci] Run cmake --build twice to temporary fix the flaky build (#2501)
* 8096658 Start creating $async functions as part of public ABI generation. (#2411)
* 27a1f3d Removed gather lowering test (#2503)
* 02cc1e3 Merge google -> main (#2505)
* 6706f3d Add GitHub action to create PRs merging google -> main (#2482)
* 645a88b Add buildifier lint action (#2243)
* fc812fe Support iree-run-mlir to read input values from a file. (#2352)
* 8078fc6 Use iree_py_binary in keras test binaries (#2488)
* 9f22404 Treat warnings as errors and silence them in third party code (#2489)
* cb000c7 Avoid unused result warning (#2469)
* b06a482 Fix some minor typos (#2486)
* ce6c171 Create cooperative matrix performance test (#2443)
* 0880ee9 Add android build badge to README (#2473)
* 8e14d1f [vulkan] Guard against 0-byte buffer allocation (#2467)
* ef019df Improve TF submodule bump action descriptions (#2471)
* c53ad00 Refactors tf_test_utils, creating tf_utils and simplifying module specificatio..
* a90df48 Merge google -> main (#2468)

PiperOrigin-RevId: 321174064
@copybara-service copybara-service Bot mentioned this pull request Jul 14, 2020
ScottTodd added a commit that referenced this pull request Jul 14, 2020
These tests are blocking #2512. Looks like they started failing with #2509.
@phoenix-meadowlark
phoenix-meadowlark deleted the tf-utils-refactor branch October 6, 2020 16:42
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 integrations Relating to high-level frontend integrations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants