mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
These should be kept the same, right? Differential Revision: [D37006473](https://our.internmc.facebook.com/intern/diff/D37006473/) Pull Request resolved: https://github.com/pytorch/pytorch/pull/79128 Approved by: https://github.com/ezyang
15 lines
327 B
C++
15 lines
327 B
C++
#pragma once
|
|
|
|
#include <c10/core/impl/SizesAndStrides.h>
|
|
#include <c10/util/SmallVector.h>
|
|
#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>;
|
|
|
|
} // namespace c10
|