Skip to content

Commit c4769a6

Browse files
committed
Update
[ghstack-poisoned]
1 parent 6c087b4 commit c4769a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchao/quantization/granularity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ class PerBlock(Granularity):
112112
* block_size has shape [X, Y]
113113
* input_tensor shape [A] -> scaling undefined
114114
* input_tensor shape [A, B] -> scale shape [A // X, B // Y]
115-
* input_tensor shape [A, B, C] -> scale shape [1, B // X, C // Y]
116-
* input_tensor shape [A, B, C, D] -> scale shape [1, 1, C // X, D // Y], and so on
115+
* input_tensor shape [A, B, C] -> scale shape [A, B // X, C // Y]
116+
* input_tensor shape [A, B, C, D] -> scale shape [A, B, C // X, D // Y], and so on
117117
118118
Note that `PerBlock((1, Y))` is equivalent to `PerGroup(Y)`
119119

0 commit comments

Comments
 (0)