提交 e75aab3a 编写于 作者: D dangqingqing

Remove redundant code in lod_tensor.h

上级 372ede15
......@@ -56,17 +56,7 @@ class LoDTensor {
LoDTensor() {}
LoDTensor(const LoD& lod, Tensor* t) : lod_(lod), tensor_(t) {}
void set_lod(const LoD& lod) {
lod_ = lod;
LOG(INFO) << lod_[0][0];
}
#ifdef PADDLE_ONLY_CPU
void set_lod(const std::vector<std::vector<size_t>>& lod) {
lod_ = lod;
LOG(INFO) << lod_[0][0];
}
#endif
void set_lod(const LoD& lod) { lod_ = lod; }
void set_tensor(Tensor* tensor) { tensor_ = tensor; }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册