Skip to content

Commit ff0d934

Browse files
committed
remove not used code
1 parent 1848358 commit ff0d934

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

paddle/fluid/framework/tensor.h

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -176,34 +176,6 @@ class Tensor {
176176
std::type_index type_;
177177
};
178178

179-
template <typename Place>
180-
struct SharedPlaceholderImpl : public Placeholder {
181-
SharedPlaceholderImpl(Place place, const uint8_t* data, size_t size,
182-
std::type_index type)
183-
: ptr_(data), place_(place), size_(size), type_(type) {}
184-
185-
virtual size_t size() const { return size_; }
186-
virtual platform::Place place() const { return place_; }
187-
virtual void* ptr() const {
188-
return const_cast<void*>(static_cast<const void*>(ptr_));
189-
}
190-
virtual std::type_index type() const { return type_; }
191-
virtual void set_type(std::type_index type) { type_ = type; }
192-
virtual void set_place(platform::Place place) { place_ = place; }
193-
194-
/*! the pointer of memory block. */
195-
const uint8_t* ptr_;
196-
197-
/*! the place of memory block. */
198-
platform::Place place_;
199-
200-
/*! the size of memory block. */
201-
size_t size_;
202-
203-
/* the current type of memory */
204-
std::type_index type_;
205-
};
206-
207179
/*! holds the memory block if allocated. */
208180
std::shared_ptr<Placeholder> holder_;
209181

0 commit comments

Comments
 (0)