| 129 | |
| 130 | template <typename TensorType> |
| 131 | std::vector<TensorType*> MutableOutputBetween(size_t start, size_t end) { |
| 132 | std::vector<TensorType*> v; |
| 133 | bool is_empty_vector = true; |
| 134 | for (size_t i = start; i < end; ++i) { |
| 135 | v.emplace_back(static_cast<TensorType*>(outputs_.at(i))); |
| 136 | if (outputs_.at(i) != nullptr) { |
| 137 | is_empty_vector = false; |
| 138 | } |
| 139 | } |
| 140 | if (is_empty_vector) { |
| 141 | v.clear(); |
| 142 | } |
| 143 | return v; |
| 144 | } |
| 145 | |
| 146 | template <typename AttrType> |
| 147 | const AttrType& AttrAt(size_t idx) const; |
no test coverage detected