- R Deep Learning Essentials
- Mark Hodnett Joshua F. Wiley
- 255字
- 2021-08-13 15:34:28
MXNet
MXNet is a deep learning library developed by Amazon. It can run on CPUs and GPUs. For this chapter, running on CPUs will suffice.
Apache MXNet is a flexible and scalable deep learning framework that supports convolutional neural networks (CNNs) and long short-term memory networks (LSTMs). It can be distributed across multiple processors/machines and achieves almost linear scale on multiple GPUs/CPUs. It is easy to install on R and it supports a good range of deep learning functionality for R. It is an excellent choice for writing our first deep learning model for image-classification.
MXNet originated at Carnegie Mellon University and is heavily supported by Amazon; they chose it as their default deep learning library in 2016. In 2017, MXNet was accepted as the Apache Incubator project, ensuring that it would remain open source software. It has a higher-level programming model similar to Keras, but the reported performance is better. MXNet is very scalable as additional GPUs are added.
To install the MXNet package for Windows, run the following code from an R session:
cran <- getOption("repos")
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN"
options(repos = cran)
install.packages("mxnet")
This installs the CPU version; for the GPU version, you need to change the second line to:
cran["dmlc"] <- "https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/R/CRAN/GPU/cu92"
You have to change cu92 to cu80, cu90 or cu91 based on the version of CUDA installed on your machine. For other operating systems (and in case the this does not work, as things change very fast in deep learning), you can get further instructions at https://mxnet.incubator.apache.org/install/index.html.
- micro:bit魔法修煉之Mpython初體驗(yàn)
- AMD FPGA設(shè)計(jì)優(yōu)化寶典:面向Vivado/SystemVerilog
- Mastering Manga Studio 5
- Istio服務(wù)網(wǎng)格技術(shù)解析與實(shí)踐
- 電腦橫機(jī)使用與維修
- 微控制器的應(yīng)用
- FPGA實(shí)戰(zhàn)訓(xùn)練精粹
- 微服務(wù)架構(gòu)基礎(chǔ)(Spring Boot+Spring Cloud+Docker)
- Raspberry Pi Home Automation with Arduino
- 計(jì)算機(jī)組裝、維護(hù)與維修項(xiàng)目教程
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程(Windows 7+Office 2010)
- 筆記本電腦的結(jié)構(gòu)、原理與維修
- Applied Deep Learning with Keras
- 計(jì)算機(jī)組裝與維護(hù)項(xiàng)目化教程(第二版)
- 101 UX Principles