Welcome reprint, but please be sure to indicate the source and author information. TensorFlow Introduction (i) Basic usage
Refer to:http://wiki.jikexueyuan.com/project/tensorflow-zh/get_started/basic_usage.html@author: Huangyongye@date: 2017-02-25
This example is mainly based on TensorFlow's Chinese documentation to learn the basic usage of tensorflow. According
about TensorFlow
The TensorFlow is an open source software library that uses a data flow graph (graphs) for numerical calculations. A node (Nodes) represents a mathematical operation in a diagram, and a line (edges) in the graph represents a multidimensional array of data that is interconnected between nodes, that is, tensor (tensor). Its flexible architecture allows you to expand calculations on multiple
The release of TensorFlow itself is based on Ubuntu, so it's more convenient under Ubuntu than under Windows. There are three kinds of installation methods, see TensorFlow the second chapter of the construction of the environment. This article describes using PIP to install CPU-based TensorFlow.1, download install pip:$ sudo apt-get install Python-pip Python-dev2
Download and install AnacondaDownload the anaconda first, which can be downloaded from the image website of Tsinghua University .Install Anaconda, and be careful not to remove the option to add environment variables during installation.After the installation is complete, in the installation directory cmd, enterConda ListYou can see the integration environment that Anaconda provides for us:Here's just a part:To view version information:Conda--versionAnaconda installation was successful.Next need
In the previous article, "TensorFlow load pre-training model and save Model", we learned how to use the pre-training model. Note, however, that in the previous article, you must have at least 4 files to use the pre-training model:
Checkpoint
Mymodel.meta
mymodel.data-00000-of-00001
mymodel.index
This is very inconvenient for us to use. Is there a way to export a PB file and then use it directly. The answer is yes. In the article "
First to install the Anaconda.Note that to add an environment variable to the system, there is an option for this. Or you'll need to manually CD to Anaconda3\bin to execute the instructions below.
Due to the installation of TensorFlow, use
Pip Install TensorFlow
The instructions always go wrong, even with the official website.
Pip Install--upgrade HTTPS://STORAGE.GOOGLEAPIS.COM/
November 29, 2016, TF officially announced that version 0.12 TensorFlow supports native Windows operating systems and is not installed through Docker.
TF beginners, Windows heavy dependent users, can follow the following feasible installation method.
First, install Python
1. Install Python on Windows via pip
TensorFlow only supports 64-bit Python3.5on Windows, either via Python 3.5 from python.org or Pyth
On the internet to find a lot of cases, stepped on a lot of pits, feel more comprehensive is the following introductionHttp://www.cnblogs.com/xuliangxing/p/7575586.htmlLet's talk about my steps:First installed the Anacoda, because it is a scientific computing environment, so first installed the latest version, so the corresponding Python 3.6Install graphics driver: gtx950m installed the latest 390 drivers, worried about incompatibility, so all with the latestInstalling Cuda, this pit was finally
Try installing a set of TensorFlow under Windows, due to the need for work. Just before the machine has been installed anaconda, can be directly through the Anaconda Navigator.
Launch Anaconda Navigator, go to Environment Settings page (environments)
2. Click the Create button under the root environment to create a new environment named TensorFlow (because the window version of
TensorFlow is an open source software library for machine learning for a variety of perceptual and language understanding tasks. It is currently used by 50 teams to research and produce many Google business products, such as voice recognition, Gmail, Google albums and search, many of which have used their predecessor software Distbelief. Originally developed by the Google Brain team for Google Research and production,
There is INCEPTION-V3 model Python implementation on GitHub at:https://github.com/tensorflow/models/tree/master/inceptionThere is several shell scripts In/inception/inception/data folder. These scripts only can run on the Linux OS, especially on Ubuntu. So. How can we set up the INCEPTION-V3 model on Windows. Let's dive into these scripts code.In download_and_preprocess_flowers.sh.First, the script download flower_photo.tgz file from the Web. Second,
60 characters to solve Fizzbuzz problem:For x in range (101):p rint "Fizz" [x%3*4::]+ "Buzz" [X%5*4::]or XThe following is solved with TensorFlow, compared with the above is very complex, but very interesting, and suitable for learning tensorflow, Divergent thinking, expand the scope of TensorFlow application.TensorFlow Application FizzbuzzReprint Please specify
TensorFlow also fire for a period of time, think that since to study NLP, why not apply Google Open-source deep learning platform, all the first start from the environment.Many of the great gods have done this work, absorbing the experience of others, centos7+python3+TensorFlow"Note: Official documents (Chinese version) said that the current TensorFlow API needs
Now to make an Android app based on image recognition, leaving aside the UI part, the first thing to do is to run TensorFlow on Android.There are two ways to use TensorFlow on Android:
TensorFlow for Mobile, more mature, contains many functional methods.
TensorFlow Lite, is a 1 upgrade version, currently i
I downloaded the TENSORFLOW-1.5.0RC1-CP36-CP36M-WIN32.WHL first, then the command line installation.: Https://pypi.python.org/pypi/tensorflow/1.5.0rc1Pip Install TENSORFLOW-1.5.0RC1-CP36-CP36M-WIN32.WHLPIP installation Error: is not a supported wheel in this platformHttps://www.cnblogs.com/nice-forever/p/5371906.htmlDry Win10 Installation
Google released the open source depth learning tool TensorFlow.
HTTP://TENSORFLOW.ORG/TUTORIALS/MNIST/BEGINNERS/INDEX.MD trial According to the official tutorial.
The operating system is Ubuntu 14.04, 64 bits, Python 2.7, and has enough Python packages installed.
1. Installation 1.1 Reference Documentation Http://tensorflow.org/get_started/os_setup.md#binary_installation1.2 with PIP installation, need to use agents, or not even, this is the local
It is common to use Conda to create environments to isolate projects at work, and this document documents the method of installing TensorFlow using Conda.-Download and install Anaconda-Run the following command to configure the development environment
#-n TensorFlow Set environment name to TensorFlow, specify Python version 3.5
Conda create-n
1. Loading requires modules and functions:
Import Math
Import numpy as NP
import h5py
import matplotlib.pyplot as Plt
import scipy from
PIL impo RT Image from
scipy import ndimage
import TensorFlow as TF from
tensorflow.python.framework import Ops
From cnn_utils import *
%matplotlib inline
np.random.seed (1)
2. Loading data and processing:
# Loading the data (signs)
X_train_orig, Y_train_orig, X_test_orig, y_test_orig, classes = Load_dataset ()
x_
Tags: nbsp system dev Ubunt tail TPS different address hardware1. First look at the pre-installed Python and PIP versions of the system, and run the following commands separately.Python-vPip-v or Pip3-v2. If you run the above instruction system to indicate that PIP is not installed or PIP3 run the following commandsudo apt-get install Python-pip Python-dev orsudo apt-get install Python3-pip Python3-dev3. Start the installation of TensorFlowPip install Tensor
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.