Skip to content

Commit c673696

Browse files
suopytorchmergebot
authored andcommitted
[skip ci] fix comment spacing in SymIntArrayRef.h
Pull Request resolved: pytorch#77665 Approved by: https://github.com/ezyang
1 parent 76b952b commit c673696

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

c10/core/SymIntArrayRef.h

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
// This file defines `SymIntArrayRef` which serves as the view onto
2-
// std::vector<SymInt> This class is conceptually and mostly functionally
3-
// equivalent to ArrayRef<SymInt> However, ArrayRef<SymInt> can't be used
4-
// directly as it introduces ambiguity in the following cases: a.expand({1, 2,
5-
// 3}) matches two overloads: `at::Tensor Tensor::expand(c10::SymIntArrayRef
6-
// size, bool implicit)` `at::Tensor Tensor::expand(at::IntArrayRef size, bool
7-
// implicit)` Introducing `SymIntArrayRef` allows to have a finer-grained
8-
// control over which overload will be used
2+
// std::vector<SymInt>. This class is conceptually and mostly functionally
3+
// equivalent to ArrayRef<SymInt>.
4+
//
5+
// However, ArrayRef<SymInt> can't be used directly as it introduces ambiguity
6+
// in the following cases:
7+
// - a.expand({1, 2, 3}) matches two overloads:
8+
// 1. `at::Tensor Tensor::expand(c10::SymIntArrayRef size, bool implicit)`
9+
// 2. `at::Tensor Tensor::expand(at::IntArrayRef size, bool implicit)`
10+
// Introducing `SymIntArrayRef` allows to have a finer-grained control over
11+
// which overload will be used.
912

1013
#pragma once
1114

0 commit comments

Comments
 (0)