FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix auto-tz casting bug by bozhonghu · Pull Request #905 · feathr-ai/feathr · GitHub

Fix auto-tz casting bug - #905

Merged
bozhonghu merged 1 commit into
feathr-ai:mainfrom
bozhonghu:fix_auto_tz_bug
Dec 15, 2022
Merged

Fix auto-tz casting bug#905
bozhonghu merged 1 commit into
feathr-ai:mainfrom
bozhonghu:fix_auto_tz_bug

Conversation

Copy link
Copy Markdown
Collaborator

Description

Fix auto-tz casting bug. The original code was unable to handle primitive arrays, i.e. int[] and would throw an error Caused by: java.lang.ClassCastException: [I cannot be cast to [Ljava.lang.Object; when encountering int[]. This specifically can cause an issue when trying to use auto-tz to convert from an array of floats to

 type: {
        type: TENSOR
        tensorCategory: SPARSE
        dimensionType: [INT]
        valType: FLOAT
      }

Changing it to use toArray resolves this issue.

How was this PR tested?

Added a new test case within integ test

Does this PR introduce any user-facing changes?

No

bozhonghu merged commit 8c8f667 into feathr-ai:main Dec 15, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL