From 446bc773590c1e8814e7b593c6913da7fd3f4b09 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Wed, 10 Apr 2024 10:35:58 -0700 Subject: [PATCH] Add note about negative indices. fixes #484 --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index f649af6c..1dd8c759 100644 --- a/index.bs +++ b/index.bs @@ -2721,7 +2721,7 @@ partial interface MLGraphBuilder {
- 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. + 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.