Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: “The next step is to use the model object’s deploy()
method to create an HTTPS endpoint.”
A block of code is set as follows:
import numpy as np import json with open("horse_cart.jpg", "rb") as f: payload = f.read() payload = bytearray(payload)
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
smp_options = { "enabled":True, "parameters": { "partitions": 1, "placement_strategy": "spread", "pipeline": "interleaved", "optimize": "speed", "ddp": True, } }
Any command-line input or output is written as follows:
$ sudo tail –f /greengrass/v2/logs/com.greengrass.SageMakerEdgeManager.ImageClassification.log
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: “On the Configure components page, select the aws.greengrass.SageMakerEdgeManager component, and choose Configure component.”
Tips or important notes
Appear like this.