File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -176,34 +176,6 @@ class Tensor {
176
176
std::type_index type_;
177
177
};
178
178
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
-
207
179
/* ! holds the memory block if allocated. */
208
180
std::shared_ptr<Placeholder> holder_;
209
181
You can’t perform that action at this time.
0 commit comments