From 6643ce273bfa93ae6b9357ae232110da4f814537 Mon Sep 17 00:00:00 2001 From: Joshua Bell Date: Wed, 10 Jan 2024 10:59:01 -0800 Subject: [PATCH] Wording change: Remove arg type test for internal validation algorithm 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. --- index.bs | 1 - 1 file changed, 1 deletion(-) diff --git a/index.bs b/index.bs index 85588884..7553aa2a 100644 --- a/index.bs +++ b/index.bs @@ -1165,7 +1165,6 @@ partial interface MLContext { To validate buffer with descriptor given |bufferView| and |descriptor|, run the following 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.