tensorflow basics - 情報セキュリティ株式会社€¦ · •testing setup •installing...

19
Information Security Inc. TensorFlow Basics

Upload: others

Post on 30-Apr-2020

19 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Inc.

TensorFlow Basics

Page 2: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Contents

2

• What is TensorFlow?

• TensorFlow Architecture

• Testing Setup

• Installing TensorFlow

• Using TensorFlow

• References

Page 3: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

What is TensorFlow?

3

• Google’s publicly available Deep Learning library

• In competition with Caffe, Theano, etc

Page 4: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

What is TensorFlow?

4

• Tensors are data (multidimensional array), Data Flow

-> Tensor Flow

Page 5: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

What is TensorFlow?

5

• Tensor

Page 6: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

What is TensorFlow?

6

• Flow

Page 7: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

What is TensorFlow?

7

• Data Flow Graphs

Page 8: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

TensorFlow Architecture

8

Page 9: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Testing Setup

9

• Kali Linux 2018.1

Page 10: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

10

• Installing with Virtualenv (https://www.tensorflow.org/install/install_linux)

• Python 2.7, Python 3.n

Page 11: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

11

• Installing with Virtualenv (https://www.tensorflow.org/install/install_linux)

• Python 2.7

Page 12: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

12

• Installing with Virtualenv (https://www.tensorflow.org/install/install_linux)

• Python 2.7

Page 13: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

13

• Installing with Virtualenv (https://www.tensorflow.org/install/install_linux)

• Python 2.7

Page 14: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

14

• Installing with Virtualenv (https://www.tensorflow.org/install/install_linux)

• Python 2.7

Page 15: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Installing TensorFlow

15

• Validate the installation (https://www.tensorflow.org/install/install_linux#ValidateYourInstallation)

• Python 2.7

Page 16: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Using TensorFlow

16

• Linear Regression Program Code Basics

Page 17: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Using TensorFlow

17

• tf.add

Page 18: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

Using TensorFlow

18

• tf.pow, tf.multiply

Page 19: TensorFlow Basics - 情報セキュリティ株式会社€¦ · •Testing Setup •Installing TensorFlow •Using TensorFlow •References. Information Security Confidential - Partner

Information Security Confidential - Partner Use Only

References

19

• GitHub

https://github.com/tensorflow/tensorflow

• Official website

https://www.tensorflow.org

• Tutorials

https://github.com/martinwicke/tensorflow-tutorial