{"action":"created","issue":{"url":"https://api.github.com/repos/chainer/chainer/issues/1759","repository_url":"https://api.github.com/repos/chainer/chainer","labels_url":"https://api.github.com/repos/chainer/chainer/issues/1759/labels{/name}","comments_url":"https://api.github.com/repos/chainer/chainer/issues/1759/comments","events_url":"https://api.github.com/repos/chainer/chainer/issues/1759/events","html_url":"https://github.com/chainer/chainer/issues/1759","id":182463287,"node_id":"MDU6SXNzdWUxODI0NjMyODc=","number":1759,"title":"cache_or_load_file should use the target directory for temporary outputs","user":{"login":"beam2d","id":392019,"node_id":"MDQ6VXNlcjM5MjAxOQ==","avatar_url":"https://avatars2.githubusercontent.com/u/392019?v=4","gravatar_id":"","url":"https://api.github.com/users/beam2d","html_url":"https://github.com/beam2d","followers_url":"https://api.github.com/users/beam2d/followers","following_url":"https://api.github.com/users/beam2d/following{/other_user}","gists_url":"https://api.github.com/users/beam2d/gists{/gist_id}","starred_url":"https://api.github.com/users/beam2d/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beam2d/subscriptions","organizations_url":"https://api.github.com/users/beam2d/orgs","repos_url":"https://api.github.com/users/beam2d/repos","events_url":"https://api.github.com/users/beam2d/events{/privacy}","received_events_url":"https://api.github.com/users/beam2d/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kmaehashi","id":939877,"node_id":"MDQ6VXNlcjkzOTg3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false},"assignees":[{"login":"kmaehashi","id":939877,"node_id":"MDQ6VXNlcjkzOTg3Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/939877?v=4","gravatar_id":"","url":"https://api.github.com/users/kmaehashi","html_url":"https://github.com/kmaehashi","followers_url":"https://api.github.com/users/kmaehashi/followers","following_url":"https://api.github.com/users/kmaehashi/following{/other_user}","gists_url":"https://api.github.com/users/kmaehashi/gists{/gist_id}","starred_url":"https://api.github.com/users/kmaehashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmaehashi/subscriptions","organizations_url":"https://api.github.com/users/kmaehashi/orgs","repos_url":"https://api.github.com/users/kmaehashi/repos","events_url":"https://api.github.com/users/kmaehashi/events{/privacy}","received_events_url":"https://api.github.com/users/kmaehashi/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2016-10-12T08:20:53Z","updated_at":"2018-06-17T09:38:34Z","closed_at":null,"author_association":"MEMBER","body":"`chainer.dataset.cache_or_load_file` avoids conflicts on calling in multiple threads/processes by first saving the object to a temporary file and then safely moving it to the target path. https://github.com/pfnet/chainer/blob/master/chainer/dataset/download.py#L139 The temporary file is made in a temporary directory created by `mkdtemp`, which can be in a different drive from that on which a user wants to save the object (i.e., the `path` argument). It would be problematic, e.g. when the object is too large to save into the global temporary directory like `/tmp`.\n\nI think we should use an approach taken in `cached_download` (i.e., specifying `dir` option to `mkdtemp`): https://github.com/pfnet/chainer/blob/master/chainer/dataset/download.py#L98\n"},"comment":{"url":"https://api.github.com/repos/chainer/chainer/issues/comments/397866857","html_url":"https://github.com/chainer/chainer/issues/1759#issuecomment-397866857","issue_url":"https://api.github.com/repos/chainer/chainer/issues/1759","id":397866857,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Nzg2Njg1Nw==","user":{"login":"stale[bot]","id":26384082,"node_id":"MDM6Qm90MjYzODQwODI=","avatar_url":"https://avatars3.githubusercontent.com/in/1724?v=4","gravatar_id":"","url":"https://api.github.com/users/stale%5Bbot%5D","html_url":"https://github.com/apps/stale","followers_url":"https://api.github.com/users/stale%5Bbot%5D/followers","following_url":"https://api.github.com/users/stale%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/stale%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/stale%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stale%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/stale%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/stale%5Bbot%5D/repos","events_url":"https://api.github.com/users/stale%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/stale%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-06-17T09:38:34Z","updated_at":"2018-06-17T09:38:34Z","author_association":"NONE","body":"This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.\n"}}
{"actor":{"display_login":"stale"}}