ThomasDelteil opened a new pull request #15230: Updating SymbolBlock.imports to support different dtypes URL: https://github.com/apache/incubator-mxnet/pull/15230 ## Description ## Previously it would be impossible to do `SymbolBlock.imports(...)` with non-fp32 parameters. The problem was that the type inference would fail all the time and parameters types would default to fp32. Now we use the parameters type as provided in the parameter file, by casting the parameters to them (new `dtype_source` for the `load` `_load_init` and `load_parameters` functions to complement the `cast_dtype` flag) If the parameters are not provided we attempt an automatic type inference with fp32 input. ## Checklist ## ### Essentials ### Please feel free to remove inapplicable items for your PR. - [ ] Changes are complete (i.e. I finished coding on this PR) - [ ] All changes have test coverage: - Unit tests are added for small changes to verify correctness (e.g. adding a new operator) - [ ] Code is well-documented: - [ ] To the my best knowledge, examples are either not affected by this change, or have been fixed to be compatible with this change
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
