Skip to Content
Java Deep Learning Cookbook
book

Java Deep Learning Cookbook

by Rahul Raj
November 2019
Intermediate to advanced
304 pages
8h 40m
English
Packt Publishing
Content preview from Java Deep Learning Cookbook

How to do it...

  1. Download and install CUDA v9.2+ from the NVIDIA developer website URL: https://developer.nvidia.com/cuda-downloads.
  2. Configure the CUDA dependencies. For Linux, go to a Terminal and edit the .bashrc file. Run the following commands and make sure you replace username and the CUDA version number as per your downloaded version:
nano /home/username/.bashrc export PATH=/usr/local/cuda-9.2/bin${PATH:+:${PATH}}$  export LD_LIBRARY_PATH=/usr/local/cuda-9.2/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}  source .bashrc 
  1. Add the lib64 directory to PATH for older DL4J versions.
  2. Run the nvcc --version command to verify the CUDA installation.
  3. Add Maven dependencies for the ND4J CUDA backend:
<dependency> <groupId>org.nd4j</groupId> <artifactId>nd4j-cuda-9.2</artifactId> ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Java Deep Learning Projects

Java Deep Learning Projects

Md. Rezaul Karim
Java: Data Science Made Easy

Java: Data Science Made Easy

Richard M. Reese, Jennifer L. Reese, Alexey Grigorev
Java 9 High Performance

Java 9 High Performance

Mayur Ramgir, Nick Samoylov
Introduction to Deep Learning Using PyTorch

Introduction to Deep Learning Using PyTorch

Goku Mohandas, Alfredo Canziani

Publisher Resources

ISBN: 9781788995207Supplemental Content