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

Fix bug in empty array dense tensor default value #806

Merged
merged 1 commit into from
Nov 1, 2022

Conversation

bozhonghu
Copy link
Collaborator

Description

Fix bug in empty default value array. Currently the return value of an empty dense tensor is a UniversalTensor and not a DenseTensor which breaks our default value code. To address this we can include the type information of the field when we try to do tensor conversion which allows the correct empty array to be created.

How was this PR tested?

Added new test case in AnchoredFeaturesIntegTest and tested via following command
sbt "testOnly *AnchoredFeaturesIntegTest" -java-home /Library/Java/JavaVirtualMachines/jdk1.8.0_282-msft.jdk/Contents/Home

Does this PR introduce any user-facing changes?

No

@xiaoyongzhu xiaoyongzhu added the safe to test Tag to execute build pipeline for a PR from forked repo label Nov 1, 2022
@bozhonghu bozhonghu merged commit ded4cae into feathr-ai:main Nov 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
safe to test Tag to execute build pipeline for a PR from forked repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants