Skip to content

Use both MLOperandDescriptor.dimensions and MLOperandDescriptor.shape - #274

Merged
Honry merged 3 commits into
webmachinelearning:masterfrom
Honry:rename-dimensions
Sep 19, 2024
Merged

Use both MLOperandDescriptor.dimensions and MLOperandDescriptor.shape#274
Honry merged 3 commits into
webmachinelearning:masterfrom
Honry:rename-dimensions

Conversation

@Honry

@Honry Honry commented Sep 18, 2024

Copy link
Copy Markdown
Collaborator

Fixed #273

@Honry

Honry commented Sep 18, 2024

Copy link
Copy Markdown
Collaborator Author

@huningxin, @ibelem, PTAL, thanks!

@ibelem

ibelem commented Sep 18, 2024

Copy link
Copy Markdown
Contributor

Thanks @Honry . What is our plan for such kind of breaking changes @huningxin , I meant do we need to add notes in footer of sample pages? E.g. "Known compatible Chromium version: 130.0.6723.6 due to #676 "

@Honry

Honry commented Sep 18, 2024

Copy link
Copy Markdown
Collaborator Author

Thanks @Honry . What is our plan for such kind of breaking changes @huningxin , I meant do we need to add notes in footer of sample pages? E.g. "Known compatible Chromium version: 130.0.6723.6 due to #676 "

Maybe we should keep both dimensions and shape for a while to avoid breaking.

@huningxin

huningxin commented Sep 18, 2024

Copy link
Copy Markdown
Contributor

Maybe we should keep both dimensions and shape for a while to avoid breaking.

sounds good. The Chromium impl would also support both dimensions and shape for a while (a milestone) for a smooth transition.

@Honry

Honry commented Sep 18, 2024

Copy link
Copy Markdown
Collaborator Author

Maybe we should keep both dimensions and shape for a while to avoid breaking.

sounds good. The Chromium impl would also support both dimensions and shape for a while (a milestone) for a smooth transition.

Done, PTAL, thanks!

Comment thread common/utils.js
}
return builder.constant({dataType: type, dimensions}, typedArray);
return builder.constant(
{dataType: type, dimensions: shape, shape}, typedArray);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @Honry

@Honry Honry changed the title Rename MLOperandDescriptor.dimensions to MLOperandDescriptor.shape Use both MLOperandDescriptor.dimensions and MLOperandDescriptor.shape Sep 19, 2024
@Honry
Honry merged commit 229c4e2 into webmachinelearning:master Sep 19, 2024
@Honry
Honry deleted the rename-dimensions branch September 19, 2024 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename MLOperandDescriptor.dimensions to MLOperandDescriptor.shape

3 participants