Skip to content
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

add detach for LazyMirroredtensorImpl #5270

Merged
merged 8 commits into from
Jun 22, 2021
Merged

Conversation

liufengwei0103
Copy link
Contributor

No description provided.

@@ -123,6 +129,13 @@ const std::shared_ptr<const Shape>& EagerMirroredTensorImpl::shape() const {
return eager_blob_object_->blob_desc().shape_ptr();
}

Maybe<MirroredTensorImpl> EagerMirroredTensorImpl::detach() const {
auto detached_impl = \
Copy link
Contributor

Choose a reason for hiding this comment

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

这个反斜杠没必要应该

@oneflow-ci-bot oneflow-ci-bot self-requested a review June 22, 2021 15:52
@oneflow-ci-bot oneflow-ci-bot removed their request for review June 22, 2021 16:42
@oneflow-ci-bot oneflow-ci-bot self-requested a review June 22, 2021 16:42
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 22, 2021 17:47
@oneflow-ci-bot oneflow-ci-bot self-requested a review June 22, 2021 19:10
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot June 22, 2021 20:57
@oneflow-ci-bot oneflow-ci-bot merged commit 3b53c41 into master Jun 22, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the add_lazy_detach branch June 22, 2021 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants