1 #include "chainerx/dims.h"
2 
3 #include <cstdint>
4 #include <ostream>
5 
6 namespace chainerx {
7 
Print(std::ostream & os) const8 void DimsFormatter::Print(std::ostream& os) const {
9     os << "[";
10     for (auto iter = dims_.begin(); iter != dims_.end(); ++iter) {
11         if (iter != dims_.begin()) {
12             os << ", ";
13         }
14         os << *iter;
15     }
16     os << "]";
17 }
18 
operator <<(std::ostream & os,const DimsFormatter & formatter)19 std::ostream& operator<<(std::ostream& os, const DimsFormatter& formatter) {
20     formatter.Print(os);
21     return os;
22 }
23 
24 }  // namespace chainerx
25