Skip to content

Commit

Permalink
fix example and impl
Browse files Browse the repository at this point in the history
  • Loading branch information
wweic committed Nov 28, 2019
1 parent 0ba0aa8 commit 29e7c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/tvm/runtime/container.h
Expand Up @@ -55,8 +55,10 @@ namespace runtime {
* void Init(Iterator begin, Iterator end) {
* size_t num_elems = std::distance(begin, end);
* auto it = begin;
* this->size = 0;
* for (size_t i = 0; i < num_elems; ++i) {
* InplaceArrayBase::EmplaceInit(i, *it++);
* this->size++;
* }
* }
* }
Expand Down Expand Up @@ -223,7 +225,6 @@ class ADT : public ObjectRef {
size_t num_elems = std::distance(begin, end);
auto ptr = make_inplace_array_object<ADTObj, ObjectRef>(num_elems);
ptr->tag = tag;
ptr->size = num_elems;
ptr->Init(begin, end);
data_ = std::move(ptr);
}
Expand Down

0 comments on commit 29e7c6a

Please sign in to comment.