Skip to content
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

Remove special casing of "None" as a dim_param #1482

Merged
merged 3 commits into from
Jul 25, 2019

Conversation

skottmckay
Copy link
Contributor

Description:
Remove special case handling of "None" as a dim_param

Motivation and Context
Special casing of a specific dim_param string is problematic long term and the issue around using "None" as a dim_param for different values is limited to the skl2onnx converter.

@skottmckay skottmckay requested a review from a team as a code owner July 24, 2019 08:48
@@ -114,12 +114,12 @@ def testRunModelSymbolicInput(self):
self.assertEqual(input_name, "X")
input_shape = sess.get_inputs()[0].shape
# Input X has an unknown dimension.
self.assertEqual(input_shape, [None, 2])
self.assertEqual(input_shape, ['None', 2])
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Without the special case treatment, the output now has the dim_param value in quotes. The previous output was the python None for a null.

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.

4 participants