codecamp

TensorFlow函数:tf.layers.InputSpec

tf.layers.InputSpec函数

InputSpec类

别名:

  • 类 tf.keras.layers.InputSpec
  • 类 tf.layers.InputSpec

定义在:tensorflow/python/layers/base.py.

指定图层的每个输入的ndim,dtype和形状.

每个层都应公开(如果适用)一个input_spec属性:InputSpec的实例列表(每个输入张量一个).

形状中的“None”条目与任何维度兼容,None形状与任何形状兼容.

参数:

  • dtype:输入的预期DataType.
  • shape:形状元组,输入的预期形状(未经检查的轴可能包括无).
  • ndim:整数,输入的预期秩.
  • max_ndim:整数,输入的最大秩.
  • min_ndim:整数,输入的最小秩.
  • axes:字典将整数轴映射到特定的维值.

方法

__init__

__init__(
    dtype=None,
    shape=None,
    ndim=None,
    max_ndim=None,
    min_ndim=None,
    axes=None
)

初始化自我.

TensorFlow函数:tf.layers.conv3d_transpose
TensorFlow函数:tf.layers.Conv3DTranspose
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }