mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Continued work to clean headers in c10/util. Pull Request resolved: https://github.com/pytorch/pytorch/pull/116185 Approved by: https://github.com/Skylion007
18 lines
444 B
C++
18 lines
444 B
C++
#pragma once
|
|
|
|
#include <c10/core/SymInt.h>
|
|
#include <c10/core/impl/SizesAndStrides.h>
|
|
#include <c10/util/SmallVector.h>
|
|
#include <cstddef>
|
|
#include <cstdint>
|
|
|
|
namespace c10 {
|
|
|
|
constexpr size_t kDimVectorStaticSize = C10_SIZES_AND_STRIDES_MAX_INLINE_SIZE;
|
|
|
|
/// A container for sizes or strides
|
|
using DimVector = SmallVector<int64_t, kDimVectorStaticSize>;
|
|
using SymDimVector = SmallVector<c10::SymInt, kDimVectorStaticSize>;
|
|
|
|
} // namespace c10
|