日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

Tensorflow tf.layers

發(fā)布時(shí)間:2025/7/25 41 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Tensorflow tf.layers 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
import tensorflow as tf 復(fù)制代碼/anaconda3/envs/py35/lib/python3.5/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.from ._conv import register_converters as _register_converters 復(fù)制代碼 inputs = tf.placeholder(tf.float32, [None, 10]) 復(fù)制代碼output = tf.layers.dense(inputs, 1) 復(fù)制代碼output.get_shape() 復(fù)制代碼TensorShape([Dimension(None), Dimension(1)]) 復(fù)制代碼 inputs = tf.placeholder(tf.float32, [None, 32, 32, 3]) 復(fù)制代碼output = tf.layers.conv2d(inputs, 64, 5) 復(fù)制代碼output.get_shape() 復(fù)制代碼TensorShape([Dimension(None), Dimension(28), Dimension(28), Dimension(64)]) 復(fù)制代碼 output = tf.layers.conv2d(inputs, 64, 5, strides=(2,2), padding='same') 復(fù)制代碼output.get_shape() 復(fù)制代碼TensorShape([Dimension(None), Dimension(16), Dimension(16), Dimension(64)]) 復(fù)制代碼 out2 = tf.layers.max_pooling2d(output, 2, 2) 復(fù)制代碼out2.get_shape() 復(fù)制代碼TensorShape([Dimension(None), Dimension(8), Dimension(8), Dimension(64)]) 復(fù)制代碼

總結(jié)

以上是生活随笔為你收集整理的Tensorflow tf.layers的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。