--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+u...@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/9f3e2d08-021f-4a63-96a6-6325a061537d%40tensorflow.org.
In [2]: print tensorflow.__version__
1.4.0
On Sun, Dec 10, 2017 at 12:44 PM, Jim Lloyd <jim....@gmail.com> wrote:
> Which version of tensorflow are you using? Version 1.4 imports faster than
> prior versions.
> On Sat, Dec 9, 2017 at 9:25 PM <peng...@gmail.com> wrote:
>>
>> It runs slowly to import tensorflow. Is there a way to speed up the
>> import? Thanks.
>>
>> In [1]: %time import tensorflow
>> CPU times: user 1.19 s, sys: 431 ms, total: 1.62 s
>> Wall time: 2.24 s
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to discuss+unsubscribe@tensorflow.org.
>> To post to this group, send email to dis...@tensorflow.org.
>> To view this discussion on the web visit
>> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/9f3e2d08-021f-4a63-96a6-6325a061537d%40tensorflow.org.
--
Regards,
Peng
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To post to this group, send email to dis...@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/CABrM6wmNFL05kgFiyDnJzta7LrhK%2Bij-0cs3M3RZwKaJpztO9A%40mail.gmail.com.
Hi Pengyu,
as far as I understand it, Tensorflow is not going be optimized for a fast cold start. Usually training takes orders of magnitudes longer than 1.2 seconds, so it wouldn't make much sense. For deployment, there's AOT compilation (https://www.tensorflow.org/performance/xla/tfcompile) or the C/C++-API.
If You still need to stick to Python and You need a fast cold start, here's some possible solutions:
Hope this helps
Dirk
>> >> email to discuss+unsubscribe@tensorflow.org.
>> >> To post to this group, send email to dis...@tensorflow.org.
>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/9f3e2d08-021f-4a63-96a6-6325a061537d%40tensorflow.org.
>>
>>
>>
>> --
>> Regards,
>> Peng
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to discuss+unsubscribe@tensorflow.org.
>> To post to this group, send email to dis...@tensorflow.org.
>> To view this discussion on the web visit
>> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/CABrM6wmNFL05kgFiyDnJzta7LrhK%2Bij-0cs3M3RZwKaJpztO9A%40mail.gmail.com.
>
>
--
Regards,
Peng
--
You received this message because you are subscribed to the Google Groups "Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to discuss+unsubscribe@tensorflow.org.
To view this discussion on the web visit https://groups.google.com/a/tensorflow.org/d/msgid/discuss/CABrM6wmXYtWvgnH%2Brv%3DUczeRm9WKdHD-h1KV8PrvMwdYOGRCcQ%40mail.gmail.com.
>> >> >> email to discuss+unsubscribe@tensorflow.org.
>> >> >> To post to this group, send email to dis...@tensorflow.org.
>> >> >> To view this discussion on the web visit
>> >> >>
>> >> >>
>> >> >> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/9f3e2d08-021f-4a63-96a6-6325a061537d%40tensorflow.org.
>> >>
>> >>
>> >>
>> >> --
>> >> Regards,
>> >> Peng
>> >>
>> >> --
>> >> You received this message because you are subscribed to the Google
>> >> Groups
>> >> "Discuss" group.
>> >> To unsubscribe from this group and stop receiving emails from it, send
>> >> an
>> >> email to discuss+unsubscribe@tensorflow.org.
>> >> To post to this group, send email to dis...@tensorflow.org.
>> >> To view this discussion on the web visit
>> >>
>> >> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/CABrM6wmNFL05kgFiyDnJzta7LrhK%2Bij-0cs3M3RZwKaJpztO9A%40mail.gmail.com.
>> >
>> >
>>
>>
>>
>> --
>> Regards,
>> Peng
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Discuss" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to discuss+unsubscribe@tensorflow.org.
>> To post to this group, send email to dis...@tensorflow.org.
>> To view this discussion on the web visit
>> https://groups.google.com/a/tensorflow.org/d/msgid/discuss/CABrM6wmXYtWvgnH%2Brv%3DUczeRm9WKdHD-h1KV8PrvMwdYOGRCcQ%40mail.gmail.com.
>
>
--
Regards,
Peng