Skip to content

Commit

Permalink
Update iterator.h
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffburdick committed Dec 15, 2023
1 parent 84eb23c commit ed0e53d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/matx/core/iterator.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ struct RandomOperatorOutputIterator {
template <typename OperatorType>
struct BeginOffset {
using self_type = BeginOffset<OperatorType>;
using value_type = typename OperatorType::scalar_type;
using value_type = index_t;
// using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
// index_t>;
using stride_type = index_t;
Expand Down Expand Up @@ -345,7 +345,7 @@ struct BeginOffset {
template <typename OperatorType>
struct EndOffset {
using self_type = BeginOffset<OperatorType>;
using value_type = typename OperatorType::scalar_type;
using value_type = index_t;
// using stride_type = std::conditional_t<is_tensor_view_v<OperatorType>, typename OperatorType::desc_type::stride_type,
// index_t>;
using stride_type = index_t;
Expand Down Expand Up @@ -411,4 +411,4 @@ auto __MATX_INLINE__ __MATX_HOST__ end(Op &&op) {
return RandomOperatorOutputIterator{static_cast<typename detail::base_type_t<Op>>(op), TotalSize(op)};
}

};
};

0 comments on commit ed0e53d

Please sign in to comment.