| 500 | return tensor_proto; |
| 501 | } |
| 502 | T min() const { |
| 503 | assert(_mem_layout); |
| 504 | T result = _mem_layout[0]; |
| 505 | for (size_t i = 1; i < this->length(); i++) |
| 506 | result = result > _mem_layout[i] ? _mem_layout[i] : result; |
| 507 | return result; |
| 508 | } |
| 509 | T max() const { |
| 510 | assert(_mem_layout); |
| 511 | T result = _mem_layout[0]; |