Home / Class/ Iter Class — pytorch Architecture

Iter Class — pytorch Architecture

Architecture documentation for the Iter class in CUDAAlgorithm.h from the pytorch codebase.

Entity Profile

Source Code

c10/cuda/CUDAAlgorithm.h lines 18–29

template <typename Iter, typename Scalar>
__device__ Iter lower_bound(Iter start, Iter end, Scalar value) {
  while (start < end) {
    auto mid = start + ((end - start) >> 1);
    if (*mid < value) {
      start = mid + 1;
    } else {
      end = mid;
    }
  }
  return end;
}

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free