-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use both MLOperandDescriptor.dimensions and MLOperandDescriptor.shape #274
Conversation
@huningxin, @ibelem, PTAL, thanks! |
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 |
sounds good. The Chromium impl would also support both |
Done, PTAL, thanks! |
@@ -121,7 +121,8 @@ export async function buildConstantByNpy(builder, url, targetType = 'float32') { | |||
throw new Error(`Conversion from ${npArray.dataType} ` + | |||
`to ${targetType} is not supported.`); | |||
} | |||
return builder.constant({dataType: type, dimensions}, typedArray); | |||
return builder.constant( | |||
{dataType: type, dimensions: shape, shape}, typedArray); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @Honry
Fixed #273