第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問(wèn)題,去搜搜看,總會(huì)有你想問(wèn)的

在對(duì) tensorflow 對(duì)象執(zhí)行操作時(shí)獲取 TypeError

在對(duì) tensorflow 對(duì)象執(zhí)行操作時(shí)獲取 TypeError

蕪湖不蕪 2021-10-19 15:00:59
下面是代碼的簡(jiǎn)化版本,我在行中遇到錯(cuò)誤 res = input - varimport tensorflow.contrib.slim as slimimport tensorflow as tfx = tf.placeholder(tf.float32, shape=[None, 150, 220, 3], name='x')input = slim.conv2d(x,  num_outputs=96, kernel_size=11, stride=4, padding=padding, scope=scope, weights_initializer=tf.truncated_normal_initializer(stddev=0.01), biases_initializer=None, activation_fn=None)var = tf.zeros_initializer()res = input - var變量類型input type: <tensorflow.python.ops.init_ops.Zeros object at 0x7f1a017fdb38>var_type: Tensor("conv1/Conv2D:0", shape=(?, 35, 53, 96), dtype=float32)錯(cuò)誤TypeError: Expected float32, got <tensorflow.python.ops.init_ops.Zeros object at 0x7f1a017fdb38> of type 'Zeros' instead.我該如何解決它,任何建議都會(huì)有所幫助。
查看完整描述

1 回答

?
烙印99

TA貢獻(xiàn)1829條經(jīng)驗(yàn) 獲得超13個(gè)贊

在這一行中,您試圖從張量中減去一個(gè)方法。


var = tf.zeros_initializer()

res = input - var


查看完整回答
反對(duì) 回復(fù) 2021-10-19
  • 1 回答
  • 0 關(guān)注
  • 276 瀏覽
慕課專欄
更多

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)