{"action":"created","issue":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/11932","repository_url":"https://api.github.com/repos/pytorch/pytorch","labels_url":"https://api.github.com/repos/pytorch/pytorch/issues/11932/labels{/name}","comments_url":"https://api.github.com/repos/pytorch/pytorch/issues/11932/comments","events_url":"https://api.github.com/repos/pytorch/pytorch/issues/11932/events","html_url":"https://github.com/pytorch/pytorch/pull/11932","id":362564275,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE3MjQ3MTc0","number":11932,"title":"Use streams in JIT serialization, allow JIT serialization to/from buffer","user":{"login":"lantiga","id":191033,"node_id":"MDQ6VXNlcjE5MTAzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/191033?v=4","gravatar_id":"","url":"https://api.github.com/users/lantiga","html_url":"https://github.com/lantiga","followers_url":"https://api.github.com/users/lantiga/followers","following_url":"https://api.github.com/users/lantiga/following{/other_user}","gists_url":"https://api.github.com/users/lantiga/gists{/gist_id}","starred_url":"https://api.github.com/users/lantiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantiga/subscriptions","organizations_url":"https://api.github.com/users/lantiga/orgs","repos_url":"https://api.github.com/users/lantiga/repos","events_url":"https://api.github.com/users/lantiga/events{/privacy}","received_events_url":"https://api.github.com/users/lantiga/received_events","type":"User","site_admin":false},"labels":[{"id":679953983,"node_id":"MDU6TGFiZWw2Nzk5NTM5ODM=","url":"https://api.github.com/repos/pytorch/pytorch/labels/jit","name":"jit","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-21T10:59:08Z","updated_at":"2018-09-21T12:16:32Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/pytorch/pytorch/pulls/11932","html_url":"https://github.com/pytorch/pytorch/pull/11932","diff_url":"https://github.com/pytorch/pytorch/pull/11932.diff","patch_url":"https://github.com/pytorch/pytorch/pull/11932.patch"},"body":"This PR replaces the use of `std::FILE` with `istream`/`ostream` for JIT serialization.\r\nIt uses this mechanism to add the possibility to serialize to/from binary buffers, in addition to files, both in `libtorch` and from Python.\r\n\r\n`getExportImportCopy` in `test_jit.py` has been updated so that both file and buffer codepaths are exercised during tests."},"comment":{"url":"https://api.github.com/repos/pytorch/pytorch/issues/comments/423511691","html_url":"https://github.com/pytorch/pytorch/pull/11932#issuecomment-423511691","issue_url":"https://api.github.com/repos/pytorch/pytorch/issues/11932","id":423511691,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMzUxMTY5MQ==","user":{"login":"lantiga","id":191033,"node_id":"MDQ6VXNlcjE5MTAzMw==","avatar_url":"https://avatars2.githubusercontent.com/u/191033?v=4","gravatar_id":"","url":"https://api.github.com/users/lantiga","html_url":"https://github.com/lantiga","followers_url":"https://api.github.com/users/lantiga/followers","following_url":"https://api.github.com/users/lantiga/following{/other_user}","gists_url":"https://api.github.com/users/lantiga/gists{/gist_id}","starred_url":"https://api.github.com/users/lantiga/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lantiga/subscriptions","organizations_url":"https://api.github.com/users/lantiga/orgs","repos_url":"https://api.github.com/users/lantiga/repos","events_url":"https://api.github.com/users/lantiga/events{/privacy}","received_events_url":"https://api.github.com/users/lantiga/received_events","type":"User","site_admin":false},"created_at":"2018-09-21T12:16:32Z","updated_at":"2018-09-21T12:16:32Z","author_association":"COLLABORATOR","body":"Tests failing on Linux are unrelated, while I'm getting a\r\n```\r\nRuntimeError: File length is not a multiple of the alignment size. Is this a valid PyTorch file?\r\n```\r\non Windows. I'll need to investigate"}}
{"actor":{"display_login":"lantiga"}}