From 692f9feb86845efdf7f06fab8d623dffbb2b803f Mon Sep 17 00:00:00 2001 From: Jim Ledin Date: Sat, 26 Mar 2022 15:21:13 -0700 Subject: [PATCH] Working on chapter 16 --- Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md | 4 ++-- Chapter16/Answers to Exercises/Ex__2_load_dataset.md | 2 ++ Chapter16/README.md | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md b/Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md index 5ee27e9..ea1844a 100644 --- a/Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md +++ b/Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md @@ -1,9 +1,9 @@ __Modern Computer Architecture and Organization Second Edition__, by Jim Ledin. Published by Packt Publishing. # Chapter 16, Exercise 1 -If you do not already have Python installed on your computer, visit https://www.python.org/downloads/ and install the current version. Ensure Python is in your search path by typing **python –version** at a system command prompt. You should receive a response similar to **Python 3.9.6**. Install TensorFlow (an open source platform for machine learning) with the command (also at the system command prompt) **pip install tensorflow**. Install Matplotlib (a library for visualizing data) with the command **pip install matplotlib**. +If you do not already have Python installed on your computer, visit https://www.python.org/downloads/ and install the current version. Ensure Python is in your search path by typing **python –-version** at a system command prompt. You should receive a response similar to **Python 3.10.3**. Install TensorFlow (an open source platform for machine learning) with the command (also at the system command prompt) **pip install tensorflow**. You may need to use the *Run as administrator* option when opening the command prompt to get a successful installation. Install Matplotlib (a library for visualizing data) with the command **pip install matplotlib**. # Answer See the Windows batch file [Ex__1_install_tensorflow.bat](src/Ex__1_install_tensorflow.bat) for the commands to install TensorFlow and Matplotlib. -To run the batch file, assuming **python** is installed and is in your path, execute the command **Ex__1_install_tensorflow.bat** +To run the batch file, assuming **python** is installed and is in your path, open an *Administrator* command prompt and execute the command **Ex__1_install_tensorflow.bat** diff --git a/Chapter16/Answers to Exercises/Ex__2_load_dataset.md b/Chapter16/Answers to Exercises/Ex__2_load_dataset.md index fd3ae5a..02a485d 100644 --- a/Chapter16/Answers to Exercises/Ex__2_load_dataset.md +++ b/Chapter16/Answers to Exercises/Ex__2_load_dataset.md @@ -8,6 +8,8 @@ See the python file [Ex__2_load_dataset.py](src/Ex__2_load_dataset.py) for the c To execute the program, assuming **python** is installed and is in your path, execute the command **python Ex__2_load_dataset.py** +If you receive an error message stating *cudart64_110.dll not found* you can safely ignore the message. This just means you do not have the library installed for running TensorFlow on an Nvidia CUDA GPU. The code will run (more slowly) on your system processor instead. + This is the set of sample images displayed by the code: ![Sample CIFAR-10 images](sample-cifar10-images.png) diff --git a/Chapter16/README.md b/Chapter16/README.md index 2928c93..60a3bfe 100644 --- a/Chapter16/README.md +++ b/Chapter16/README.md @@ -7,6 +7,7 @@ This chapter will cover the following topics: * Overview of self-driving vehicles * Safety concerns of self-driving vehicles * Hardware and software processing requirements for self-driving vehicles +* Autonomous vehicle computer architecture # Answers to Exercises [Answers to Exercises](Answers%20to%20Exercises/README.md) \ No newline at end of file