Download and extract the TensorFlow C library into /usr/local/lib by invoking the following shell commands: <code><span class="pln"> TF_TYPE</span><span class="pun">=</span><span class="str">"cpu"</span> <span class="com"># Change to "gpu" for GPU support</span><span class="pln"> TARGET_DIRECTORY</span><span class="pun">=</span><span class="str">'/usr/local'</span><span class="pln"> curl </span><span class="pun">-</span><span class="pln">L </span><span class="pun">\</span><span class="pln"> </span><span class="str">"http://ift.tt/2pvysny(go env GOOS)-x86_64-1.1.0.tar.gz"</span> <span class="pun">|</span><span class="pln"> sudo tar </span><span class="pun">-</span><span class="pln">C $TARGET_DIRECTORY </span><span class="pun">-</span><span class="pln">xz </span></code> The tar command extracts the TensorFlow C library into the lib subdirectory of TARGET_DIRECTORY. For example, specifying /usr/local as TARGET_DIRECTORY causes tar to extract the TensorFlow C library into /usr/local/lib. If you’d prefer to extract the library into a different directory, adjust TARGET_DIRECTORY
The post Here is Simple TensorFlow Application Go Programming Language appeared first on Coding Security.
Here is Simple TensorFlow Application Go Programming Language
read more
Tidak ada komentar:
Posting Komentar