Skip to content

Commit

Permalink
Wording change: Remove arg type test for internal validation algorithm
Browse files Browse the repository at this point in the history
The "validate buffer with descriptor given bufferView and descriptor"
was validating that the type of the buffer was MLBufferView. This is
not necessary, as all invokers (directly, and indirectly via "validate
graph resources") only accept MLBufferViews via the WebIDL signatures.
  • Loading branch information
inexorabletash committed Jan 17, 2024
1 parent 69aeffa commit 6643ce2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1165,7 +1165,6 @@ partial interface MLContext {
To <dfn>validate buffer with descriptor</dfn> given |bufferView| and |descriptor|, run the following steps:
</summary>
<div class=algorithm-steps>
1. If |bufferView| is not an {{MLBufferView}}, return false.
1. If |bufferView|'s [=element type=] does not match to |descriptor|.{{MLOperandDescriptor/dataType}} according to [this table](#appendices-mloperanddatatype-arraybufferview-compatibility), return false.
1. If |bufferView|.\[[ByteLength]] is not equal to the [=byte length=] of |descriptor|, return false.
</div>
Expand Down

0 comments on commit 6643ce2

Please sign in to comment.