zoukankan      html  css  js  c++  java
  • tensorflow读取本地MNIST数据集

    tensorflow读取本地MNIST数据集

    数据放入文件夹(不要解压gz):

    >>> import tensorflow as tf

    >>> from tensorflow.examples.tutorials.mnist import input_data

    >>> MNIST_data =r'D: ensorflowmnist'

    >>> mnist = input_data.read_data_sets(MNIST_data,one_hot=True)

    Extracting D: ensorflowmnist rain-images-idx3-ubyte.gz

    WARNING:tensorflow:From d:ProgramDataAnaconda3libsite-packages ensorflowcontriblearnpythonlearndatasetsmnist.py:267: extract_labels (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.

    Instructions for updating:

    Please use tf.data to implement this functionality.

    Extracting D: ensorflowmnist rain-labels-idx1-ubyte.gz

    WARNING:tensorflow:From d:ProgramDataAnaconda3libsite-packages ensorflowcontriblearnpythonlearndatasetsmnist.py:110: dense_to_one_hot (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.

    Instructions for updating:

    Please use tf.one_hot on tensors.

    Extracting D: ensorflowmnist 10k-images-idx3-ubyte.gz

    Extracting D: ensorflowmnist 10k-labels-idx1-ubyte.gz

    WARNING:tensorflow:From d:ProgramDataAnaconda3libsite-packages ensorflowcontriblearnpythonlearndatasetsmnist.py:290: DataSet.__init__ (from tensorflow.contrib.learn.python.learn.datasets.mnist) is deprecated and will be removed in a future version.

    Instructions for updating:

    Please use alternatives such as official/mnist/dataset.py from tensorflow/models.

  • 相关阅读:
    celery
    KeyError: 'pass_ticket'
    Go语言标准库之context
    Go语言标准库之log
    Go语言标准库之time
    Go语言基础之Cookie和Session
    #if...#endif的用法总结
    汇总#pragma用法
    Linux串口编程(转载)
    Linux系统调用(转载)
  • 原文地址:https://www.cnblogs.com/xiexiaokui/p/10409676.html
Copyright © 2011-2022 走看看