"test/srt/git@developer.sourcefind.cn:change/sglang.git" did not exist on "4e3defe5a77e14d70ad4ebfb3115ce507789f6e9"
Commit 880c8102 authored by rusty1s's avatar rusty1s
Browse files

typo

parent c3bacf3b
...@@ -9,8 +9,10 @@ from .._ext import ffi ...@@ -9,8 +9,10 @@ from .._ext import ffi
def _scatter(name, dim, *data): def _scatter(name, dim, *data):
a, b, c = data[:3] a, b, c = data[:3]
# Assert same dimensionality across all inputs. # Assert index dimension is valid.
assert dim >= 0 and dim < a.dim(), 'Index dimension is out of bounds' assert dim >= 0 and dim < a.dim(), 'Index dimension is out of bounds'
# Assert same dimensionality across all inputs.
assert b.dim() == c.dim(), ('Index tensor must have same dimensions as ' assert b.dim() == c.dim(), ('Index tensor must have same dimensions as '
'input tensor') 'input tensor')
assert a.dim() == c.dim(), ('Input tensor must have same dimensions as ' assert a.dim() == c.dim(), ('Input tensor must have same dimensions as '
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment