-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Update definition of Cast Op to support casting to/from string #1704
Conversation
raymondxyang
commented
Dec 20, 2018
- Update the Cast op to support casting to/from string tensors
- Enable float <-> string test cases
… pipeline for unicode dtypes in numpy
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.
Please only format your changes, otherwise it will be hard for review. Also we need address the precision problem, if the input string is not able to be represented by the target type, what will happen. Also when convert the numeric tensors to string tensors, which representation will be used.
@houseroad Reverted the format changes in def.cc |
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.
Nice work!
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.
Looks good, thanks
Please resolve the conflict. |
…1704) * Update definition of Cast Op to support convert to/from tensor(string) * Add test case for casting to/from string; Modify testdata preparation pipeline for unicode dtypes in numpy * Fix cast test case * Fix numpy testcase helper * Fix numpy testcase helper * Lint code * Update test coverage * Update operators.md * Update numpy string releated scripts * Fix flake8 error * Update cast op to support numeric literal values * Fix cast def * Update md files * Update docs for undefined behaviors * Resolve PR comments * Fix syntax errors; Refine operator documentation * Add coverage for Cast testcase * Update operator doc; Change testcase data generating script using existing unicode string handles * Update test data * Update testdata
Hi ,a similar problem occured to me . |
…1704) * Update definition of Cast Op to support convert to/from tensor(string) * Add test case for casting to/from string; Modify testdata preparation pipeline for unicode dtypes in numpy * Fix cast test case * Fix numpy testcase helper * Fix numpy testcase helper * Lint code * Update test coverage * Update operators.md * Update numpy string releated scripts * Fix flake8 error * Update cast op to support numeric literal values * Fix cast def * Update md files * Update docs for undefined behaviors * Resolve PR comments * Fix syntax errors; Refine operator documentation * Add coverage for Cast testcase * Update operator doc; Change testcase data generating script using existing unicode string handles * Update test data * Update testdata