tflearn.layers.input_data = tflearn.layers.core.input_data


input_data(shape=None, placeholder=None, dtype=tf.float32, data_preprocessing=None, data_augmentation=None, name='InputData')

    Input Data.

    

    This layer is used for inputting (aka. feeding) data to a network.

    A TensorFlow placeholder will be used if it is supplied,

    otherwise a new placeholder will be created with the given shape.

    

    Either a shape or placeholder must be provided, otherwise an

    exception will be raised.

    

    Furthermore, the placeholder is added to TensorFlow collections

    so it can be retrieved using tf.get_collection(tf.GraphKeys.INPUTS)

    as well as tf.GraphKeys.LAYER_TENSOR + '/' + name. Similarly for

    the data preprocessing and augmentation objects which are stored in

    the collections with tf.GraphKeys.DATA_PREP and tf.GraphKeys.DATA_AUG.

    This allows other parts of TFLearn to easily retrieve and use these

    objects by referencing these graph-keys.

    

    Input:

        List of `int` (Shape), to create a new placeholder.

            Or

        `Tensor` (Placeholder), to use an existing placeholder.

    

    Output:

        Placeholder Tensor with given shape.

    

    Arguments:

        shape: list of `int`. An array or tuple representing input data shape.

            It is required if no placeholder is provided. First element should

            be 'None' (representing batch size), if not provided, it will be

            added automatically.

        placeholder: A Placeholder to use for feeding this layer (optional).

            If not specified, a placeholder will be automatically created.

            You can retrieve that placeholder through graph key: 'INPUTS',

            or the 'placeholder' attribute of this function's returned tensor.

        dtype: `tf.type`, Placeholder data type (optional). Default: float32.

        data_preprocessing: A `DataPreprocessing` subclass object to manage

            real-time data pre-processing when training and predicting (such

            as zero center data, std normalization...).

        data_augmentation: `DataAugmentation`. A `DataAugmentation` subclass

            object to manage real-time data augmentation while training (

            such as random image crop, random image flip, random sequence

            reverse...).

        name: `str`. A name for this layer (optional).


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值