Support 'bytes' type in torchscript #18005
Labels
jit-backlog
oncall: jit
Add this issue/PR to JIT oncall triage queue
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃殌 Feature
Need support for 'bytes' type in torchscript
Motivation
While dealing with image data, we have use cases where we download a blob from a blobstore and need to pass it to a torchscript module for further processing (ex: torchvision.transforms).
Currently, there is no clean way to do this since pybind enforces that python strings be utf-8 encoded and as a result we can't pass in arbitrary bytes to a torchscript module.
Supporting the python 'bytes' type in torchscript would be a clean way to support use cases like this.
cc @suo
The text was updated successfully, but these errors were encountered: