May 2020
Intermediate to advanced
530 pages
17h 8m
English
There are a number of text conventions used throughout this book.
CodeInText: 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: "We downloaded a pre-trained model with the torch.hub.load() function."
A block of code is set as follows:
class Network { public: Network(const std::string& snapshot_path, const std::string& synset_path, torch::DeviceType device_type); std::string Classify(const at::Tensor& image); private: torch::DeviceType device_type_; Classes classes_; torch::jit::script::Module model_;};
Any command-line input or output is written as follows:
cd ~/[DEST_PATH]/servermkdir buildcd buildcmake ...
Read now
Unlock full access