Skip to content

Commit

Permalink
address fdwr feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sully committed Sep 17, 2024
1 parent 25af965 commit bbfa491
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ dictionary MLOperandDescriptor {
:: The operand data type.

: <dfn>shape</dfn>
:: The shape of the operand. It is empty for scalar operands, and non-empty for tensor operands.
:: The list of dimensions of the operand. It is empty for scalar operands.
</dl>

<details open algorithm>
Expand Down Expand Up @@ -6128,15 +6128,15 @@ Given the following build graph:
</summary>
<pre highlight="js">
// Use tensors in 4 dimensions.
const TENSOR_DIMS = [1, 2, 2, 2];
const TENSOR_SHAPE = [1, 2, 2, 2];
const TENSOR_SIZE = 8;

const builder = new MLGraphBuilder(context);

// Create MLOperandDescriptor object.
const desc = {
dataType: 'float32',
shape: TENSOR_DIMS
shape: TENSOR_SHAPE
};

// constant1 is a constant MLOperand with the value 0.5.
Expand Down

0 comments on commit bbfa491

Please sign in to comment.