Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Custom Masking value #389

Merged
merged 6 commits into from
Feb 20, 2020
Merged

Custom Masking value #389

merged 6 commits into from
Feb 20, 2020

Conversation

cjermain
Copy link
Contributor

@cjermain cjermain commented Feb 18, 2020

This PR uses the actual mask_value, instead of assuming that it is 0.0. This allows custom mask values to be used, as long as they can be represented as a float32 or int32 (e.g. np.nan works as expected).

I added mask_value to the Operator class to be able to pass that information down. I'm not convinced this is the best form, but it seemed to be the easiest way in the short term.

@cjermain cjermain requested a review from wenbingl February 18, 2020 02:59
Copy link
Member

@wenbingl wenbingl left a comment

Choose a reason for hiding this comment

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

thanks a lot for your fixing.

@wenbingl wenbingl merged commit 3a6e4ad into onnx:master Feb 20, 2020
@cjermain cjermain deleted the bug/masking_value branch February 24, 2020 01:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants