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

Refactor DeviceScopes out into a separate structure. #370

Merged
merged 2 commits into from
Jul 17, 2019

Conversation

bgogul
Copy link
Contributor

@bgogul bgogul commented Jul 17, 2019

No description provided.

@bgogul bgogul requested a review from pschuh July 17, 2019 17:19
internalConsistencyCheck(deviceStack.popLast() != nil)
}
}

@usableFromInline
@_cdecl("_swift_tfc_OpSetDeviceFromScope")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this can be deleted now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is still used in EagerExecution.swift. However, those use cases can be rewritten. Will send out a separate PR for that.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like you were only referring to _cdecl. Will send out a PR cleaning this up and a few other uses.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it'd be nice to have EagerExecution.swift use C API directly.

@bgogul bgogul merged commit 6b5c521 into tensorflow:master Jul 17, 2019
@bgogul bgogul deleted the refactor_device_scopes branch July 17, 2019 17:46
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