Skip to content

Commit

Permalink
Working on chapter 16
Browse files Browse the repository at this point in the history
  • Loading branch information
jledin committed Mar 26, 2022
1 parent 170c450 commit 692f9fe
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chapter16/Answers to Exercises/Ex__1_install_tensorflow.md
Original file line number Diff line number Diff line change
@@ -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**
2 changes: 2 additions & 0 deletions Chapter16/Answers to Exercises/Ex__2_load_dataset.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 1 addition & 0 deletions Chapter16/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 692f9fe

Please sign in to comment.