Skip to content

Conversation

fmassa
Copy link
Member

@fmassa fmassa commented Nov 16, 2020

Cherry-pick for the 0.8.3 release

cc @seemethere

…rch#2949)

* Make read_file accept unicode strings on Windows

* More fixes

* Remove definitions from source files

* Move string definitions to header

* Add checks

* Fix comments

* Update macro

* Fix comments

* Fix lint

* include windows header

* Change func signature in header

* Use from_blob

* Fix fread calls

* Fix clang format

* Fix missing return

* Avoid copy
@fmassa fmassa added this to the v0.8.2 milestone Nov 16, 2020
@peterjc123
Copy link
Contributor

peterjc123 commented Nov 17, 2020

@fmassa Actually we are also fixing the from_file implementation in PyTorch with pytorch/pytorch#47905. Do you think we should wait for that or just use this implementation?

@fmassa
Copy link
Member Author

fmassa commented Nov 17, 2020

@peterjc123 Given that the branch freeze for the 1.7.1 release of PyTorch is tomorrow, I believe it's better to have this patch merged in for the dot release, and then for the 1.8.0 release of PyTorch we revert back to using torch::from_file.

@fmassa fmassa merged commit 98521c7 into pytorch:release/0.8.0 Nov 19, 2020
@fmassa fmassa deleted the cherry_pick_2949 branch November 19, 2020 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants