91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 8KB
    文件類型: .py
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-06
  • 語言: Python
  • 標簽: AI??卷積lstm??

資源簡介

tensorflow 實現卷積LSTM,參見文章Convolutional LSTM Network: A Machine Learning Approach for Precipitation Nowcasting

資源截圖

代碼片段和文件信息

#?-*-?coding:?utf-8?-*-??
import?tensorflow?as?tf
import?numpy?as?np
import?os
from?cell?import?ConvLSTMCell
if?‘session‘?in?locals()?and?session?is?not?None:
????print(‘Close?interactive?session‘)
????session.close()
def?main():
????shape=[132?228]
????kernel?=?[3?3]
????filters?=?12
????batch_size=181
????num_steps=8
????channels=7
????inputs?=?tf.placeholder(tf.float32?[batch_size?num_steps]?+?shape?+?[channels])
????cell?=?ConvLSTMCell(shape?filters?kernel)
????outputs?state?=?tf.nn.dynamic_rnn(cell?inputs?dtype=inputs.dtype?time_major=True)
????print(inputs.shape)
????with?tf.Session()?as?sess:
????????sess.run(tf.global_variables_initializer())
????????for?idx?epoch?in?enumerate(gen_epochs(num_epochs?num_steps)):
????????????for?step?(X?Y)?in?enume

評論

共有 條評論