Skip to content

Commit 446bc77

Browse files
Add note about negative indices. fixes #484
1 parent c0d3469 commit 446bc77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2721,7 +2721,7 @@ partial interface MLGraphBuilder {
27212721
</div>
27222722

27232723
<div class="note">
2724-
The {{MLGraphBuilder/gather(input, indices, options)/indices}} parameter to {{MLGraphBuilder/gather()}} can not be clamped to the allowed range when the graph is built. Implementations can introduce {{MLGraphBuilder/clamp()}} in the compiled graph if the required clamping behavior is not provided by the underlying platform.
2724+
The {{MLGraphBuilder/gather(input, indices, options)/indices}} parameter to {{MLGraphBuilder/gather()}} can not be clamped to the allowed range when the graph is built. Implementations can introduce {{MLGraphBuilder/clamp()}} in the compiled graph if the required clamping behavior is not provided by the underlying platform. Similarly, if the underlying platform does not support negative indices, the implementation can introduce operations in the compiled graph to transform a negative index from the end of the dimension into a positive index.
27252725
</div>
27262726

27272727
<details open algorithm>

0 commit comments

Comments
 (0)