From dc30ad1dbb678e42db45a8e1ddd9c558a8fb0280 Mon Sep 17 00:00:00 2001 From: Zhanlue Yang Date: Tue, 28 Dec 2021 10:04:10 +0800 Subject: [PATCH] Fixed issue with offset,test=allcases (#38506) --- paddle/pten/api/lib/utils/storage.h | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/pten/api/lib/utils/storage.h b/paddle/pten/api/lib/utils/storage.h index 132ffe165e..793ddfcee3 100644 --- a/paddle/pten/api/lib/utils/storage.h +++ b/paddle/pten/api/lib/utils/storage.h @@ -84,6 +84,7 @@ class SharedStorage : public pten::Storage { void Clear() override { data_ = nullptr; size_ = 0; + offset_ = 0; } size_t size() const noexcept override { return size_; } -- GitLab