Commit 953638e
authored
[Unify Tensors PR #6] Removed interfaces & members from lod_tensor,test=allcases (PaddlePaddle#38811)
* Added shared_ptr<Allocation> member & corresponding interfaces to Storage
* Removed original pten::Allocation from Storage and adjusted the interfaces accordingly
* Fixed issues with storage offset
* Used place to malloc allocation for TensorStorage
* [Unify Tensors PR #3]Ported framework::Tensor interfaces to pten::DenseTensor
* Fixed issues with place
* Added comments
* Moved mutable_data with stream argument to DenseTensor
* Added set_offset interface
* Fixed CI issues,test=allcases
* [Unify Tensors PR #4] Port LoDTensor interfaces to DenseTensor
* Removed friend class EigenTensor/EigenMatrix/EigenVector from Tensor
* Modified framework::Tensor to inherit from DenseTensor
* Reverted changes too pten_layout() interface
* Removed friend classes
* Rearranged cfunction calls from tensor.data<void>() to tensor.data()
* Fixed CI issues
* Fixed lite issues
* Fixed data() interface issues,test=allcases
* Resolved IsInitialized() issues
* Fixed ResetHolder() issues
* Fixed MKLDNN & Storage issues
* Resolved ShareBufferWith() issues
* Fixed LoD issues
* Removed interfaces & members from lod_tensor,test=allcases1 parent 5c35750 commit 953638e
2 files changed
Lines changed: 4 additions & 51 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
| 111 | + | |
159 | 112 | | |
160 | 113 | | |
161 | 114 | | |
162 | 115 | | |
163 | 116 | | |
164 | 117 | | |
165 | 118 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | 119 | | |
170 | 120 | | |
171 | 121 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| 113 | + | |
| 114 | + | |
113 | 115 | | |
| 116 | + | |
114 | 117 | | |
115 | 118 | | |
116 | 119 | | |
| |||
0 commit comments