23#ifndef __NNFW_MISC_TENSOR_INDEX_ITERATOR_H__
24#define __NNFW_MISC_TENSOR_INDEX_ITERATOR_H__
Class to enumerate index of a tensor.
Class to iterate indexes available for given shape.
IndexIterator(const Shape &shape)
Construct a new IndexIterator object.
IndexIterator(IndexIterator &&)=default
Construct a new IndexIterator object using reference.
IndexIterator(const IndexIterator &)=delete
Prevent copy constructor.
IndexIterator & iter(Callable fn)
Iterate all available indexes and run a function for each index.
Class to represent shape of a tensor.
IndexIterator iterate(const Shape &shape)
Get an IndexItator object.
std::ostream & operator<<(std::ostream &os, const IndexFormatter &fmt)
Send IndexFormatter object to output stream.
This file contains nnfw::misc::tensor::Index struct.
This file contains nnfw::misc::tensor::IndexEnumerator class.
This file contains nnfw::misc::tensor::Shape class.