pdfcoffee
Chapter 13Then you need to install Android Studio from https://developer.android.com/studio/install and an appropriate distribution of Java. In my case, I selected theAndroid Studio MacOS distribution, and installed Java via brew with the followingcommand:brew tap adoptopenjdk/openjdkbrew cask install homebrew/cask-versions/adoptopenjdk8After that you can launch the sdkmanager and install the required packages. In mycase, I decided to use the internal emulator and deploy the application on a virtualdevice emulating a Google Pixel 3 XL. The required packages are reported in Figure 3:Figure 3: Required packages to use a Google Pixel 3 XL emulatorThen start Android Studio and select Open an existing Android Studio project asshown in Figure 4:Figure 4: Opening a new Android project[ 467 ]
TensorFlow for Mobile and IoT and TensorFlow.jsOpen the Adv Manager (under the Tool menu) and follow the instructions for howto create a virtual device, as the one shown in Figure 5:Figure 5: Creating a virtual devicePretrained models in TensorFlow LiteIn many interesting use cases, it is possible to use a pretrained model that is alreadysuitable for mobile computation. This is a field of active research with new proposalscoming pretty much every month. TensorFlow Lite comes with a set of prebuiltmodels that are ready to use (https://www.tensorflow.org/lite/models/). As ofOctober 2019, these include:• Image classification: Used to identify multiple classes of objects such asplaces, plants, animals, activities, and people.• Object detection: Used to detect multiple objects with bounding boxes.• Pose estimation: Used to estimate poses with single or multiple people.• Smart reply: Used to create reply suggestions for conversational chatmessages.• Segmentations: Identifies the shape of objects together with semantic labelsfor people, places, animals, and many additional classes.• Style transfers: Used to apply artistic styles to any given image.• Text classification: Used to assign different categories to textual content.• Question and answer: Used to provide answers to questions provided byusers.[ 468 ]
- Page 452 and 453: Chapter 11The MuJoCo environment re
- Page 454 and 455: Chapter 11We will first import the
- Page 456 and 457: Chapter 11The αα is the learning
- Page 458 and 459: Chapter 11We set up the global valu
- Page 460 and 461: Chapter 11else:return np.argmax(sel
- Page 462 and 463: Chapter 11DQN to play a game of Ata
- Page 464 and 465: Chapter 11self.model.add( Conv2D(64
- Page 466 and 467: Chapter 11Here the action A was sel
- Page 468 and 469: Chapter 11Image source: https://arx
- Page 470 and 471: Chapter 11A neural network is used
- Page 472: Chapter 1111. Details regarding ins
- Page 475 and 476: TensorFlow and Cloud• Scalability
- Page 477 and 478: TensorFlow and Cloud• Azure DevOp
- Page 479 and 480: TensorFlow and Cloud• Lambda: The
- Page 481 and 482: TensorFlow and Cloud• Deep Learni
- Page 483 and 484: TensorFlow and CloudEC2 on AmazonTo
- Page 485 and 486: TensorFlow and CloudCompute Instanc
- Page 487 and 488: TensorFlow and CloudYou just share
- Page 489 and 490: TensorFlow and CloudIn case you req
- Page 491 and 492: TensorFlow and CloudIt starts with
- Page 493 and 494: TensorFlow and CloudTFX librariesTF
- Page 495 and 496: TensorFlow and CloudReferences1. To
- Page 497 and 498: TensorFlow for Mobile and IoT and T
- Page 499 and 500: TensorFlow for Mobile and IoT and T
- Page 501: TensorFlow for Mobile and IoT and T
- Page 505 and 506: TensorFlow for Mobile and IoT and T
- Page 507 and 508: TensorFlow for Mobile and IoT and T
- Page 509 and 510: TensorFlow for Mobile and IoT and T
- Page 511 and 512: TensorFlow for Mobile and IoT and T
- Page 513 and 514: TensorFlow for Mobile and IoT and T
- Page 515 and 516: TensorFlow for Mobile and IoT and T
- Page 517 and 518: TensorFlow for Mobile and IoT and T
- Page 519 and 520: TensorFlow for Mobile and IoT and T
- Page 521 and 522: TensorFlow for Mobile and IoT and T
- Page 523 and 524: TensorFlow for Mobile and IoT and T
- Page 525 and 526: TensorFlow for Mobile and IoT and T
- Page 527 and 528: An introduction to AutoMLThat is pr
- Page 529 and 530: An introduction to AutoMLFeature co
- Page 531 and 532: An introduction to AutoMLThis Effic
- Page 533 and 534: An introduction to AutoMLGoogle Clo
- Page 535 and 536: An introduction to AutoMLThen, we c
- Page 537 and 538: An introduction to AutoMLOnce the d
- Page 539 and 540: An introduction to AutoMLIf your mo
- Page 541 and 542: An introduction to AutoMLClicking o
- Page 543 and 544: An introduction to AutoMLFigure 16:
- Page 545 and 546: An introduction to AutoMLYou can al
- Page 547 and 548: An introduction to AutoMLPut simply
- Page 549 and 550: An introduction to AutoMLLet's star
- Page 551 and 552: An introduction to AutoMLThe token
Chapter 13
Then you need to install Android Studio from https://developer.android.com/
studio/install and an appropriate distribution of Java. In my case, I selected the
Android Studio MacOS distribution, and installed Java via brew with the following
command:
brew tap adoptopenjdk/openjdk
brew cask install homebrew/cask-versions/adoptopenjdk8
After that you can launch the sdkmanager and install the required packages. In my
case, I decided to use the internal emulator and deploy the application on a virtual
device emulating a Google Pixel 3 XL. The required packages are reported in Figure 3:
Figure 3: Required packages to use a Google Pixel 3 XL emulator
Then start Android Studio and select Open an existing Android Studio project as
shown in Figure 4:
Figure 4: Opening a new Android project
[ 467 ]