Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Shape inference of simple operations in LazyTensor. #388

Merged
merged 5 commits into from
Aug 5, 2019

Conversation

bgogul
Copy link
Contributor

@bgogul bgogul commented Jul 25, 2019

This PR incorporates shape tracking in lazy tensor by using the shape inference functions associated with the TF operations.

@bgogul bgogul changed the title WIP: Shape inference in LazyTensor. Shape inference of simple operations in LazyTensor. Aug 1, 2019
@bgogul bgogul requested review from pschuh and dan-zheng August 1, 2019 07:39
@bgogul
Copy link
Contributor Author

bgogul commented Aug 1, 2019

Folks, this PR is ready for review.

@bgogul
Copy link
Contributor Author

bgogul commented Aug 5, 2019

Gentle ping. Can someone take a look at this PR, please?

@@ -62,12 +62,22 @@ class LazyTensorOperationsTracker {

struct LazyTensorContext {
private var operationsTracker = LazyTensorOperationsTracker()
private var _shapeTrackingEnabled = true

static private var threadLocalContext: LazyTensorContext {
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider renaming to just local. It's a convention used in a lot of other Swift APIs.

@bgogul bgogul merged commit 0ef44fa into tensorflow:master Aug 5, 2019
@bgogul bgogul deleted the shape_inference branch August 5, 2019 21:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants