Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
wanghuancoder committed Nov 16, 2023
1 parent 3a24b7f commit d0a5cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/pybind/eager_method.cc
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ static PyObject* tensor_method__is_dense_tensor_hold_allocation(
->IsInitialized());
} else if (self->tensor.is_dist_tensor()) {
return ToPyObject(
static_cast<phi::distributed::DistTensor*>(grad->impl().get())
static_cast<phi::distributed::DistTensor*>(self->tensor.impl().get())
->value()
.IsInitialized());
} else {
Expand Down

0 comments on commit d0a5cd3

Please sign in to comment.