Hub: Module download

Created on 17 Apr 2018  Â·  1Comment  Â·  Source: tensorflow/hub

Why it is downloading the module every time I restart the system? Can't I save that file in my local system?

Most helpful comment

By default, the library uses system's temp folder that on most systems is
cleared on restart. You can set your own, durable location for the local
module cache using TFHUB_CACHE_DIR
https://github.com/tensorflow/hub/blob/master/tensorflow_hub/resolver.py#L42
environment variable, e.g.

export TFHUB_CACHE_DIR=/usr/local/my_module_cache

On Tue, Apr 17, 2018 at 3:03 PM saikrishna9494 notifications@github.com
wrote:

Why it is downloading the module every time I restart the system? Can't I
save that file in my local system?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/34, or mute the thread
https://github.com/notifications/unsubscribe-auth/AbunTCzwoqOwh9ehrjp8i0maqS2NHP9Gks5tpeg-gaJpZM4TYQLx
.

>All comments

By default, the library uses system's temp folder that on most systems is
cleared on restart. You can set your own, durable location for the local
module cache using TFHUB_CACHE_DIR
https://github.com/tensorflow/hub/blob/master/tensorflow_hub/resolver.py#L42
environment variable, e.g.

export TFHUB_CACHE_DIR=/usr/local/my_module_cache

On Tue, Apr 17, 2018 at 3:03 PM saikrishna9494 notifications@github.com
wrote:

Why it is downloading the module every time I restart the system? Can't I
save that file in my local system?

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/hub/issues/34, or mute the thread
https://github.com/notifications/unsubscribe-auth/AbunTCzwoqOwh9ehrjp8i0maqS2NHP9Gks5tpeg-gaJpZM4TYQLx
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

artemmavrin picture artemmavrin  Â·  3Comments

lugq1990 picture lugq1990  Â·  4Comments

arnoegw picture arnoegw  Â·  5Comments

cbockman picture cbockman  Â·  3Comments

codevjs picture codevjs  Â·  4Comments