diff --git a/paddle/pten/hapi/lib/utils/tensor_utils.cc b/paddle/pten/hapi/lib/utils/tensor_utils.cc index b00d1c843b78d..2fb39852702c2 100644 --- a/paddle/pten/hapi/lib/utils/tensor_utils.cc +++ b/paddle/pten/hapi/lib/utils/tensor_utils.cc @@ -96,7 +96,7 @@ std::unique_ptr MakePtenTensorBaseFromVar( pten::TransToProtoVarType(arg_def.dtype)); // TODO(chenweihang): adapt SelectedRows by xiaowei's design, // here the row and height will lost in output! - MakePtenDenseTensor(tensor->value()); + return MakePtenDenseTensor(tensor->value()); } else { PADDLE_THROW(platform::errors::Unimplemented( "Unsupported shared output `%s` type now when call pt kernel.",