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

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

K.zeros_like(x) 的 K.int_shape

K.zeros_like(x) 的 K.int_shape

慕田峪9158850 2021-09-14 20:29:14
這是我的自定義填充層:   class CustomZeroPadding2D(Layer):        def __init__(self, **kwargs):            super(CustomZeroPadding2D, self).__init__(**kwargs)        def build(self, input_shape):            super(CustomZeroPadding2D, self).build(input_shape)        def call(self, x):            print('K.int_shape(x)', K.int_shape(x))            print('K.int_shape(K.zeros_like(x))', K.int_shape(K.zeros_like(x)))            res = concatenate([x, K.zeros_like(x)], axis=-1)            return res        def compute_output_shape(self, input_shape):            output_shape = (input_shape[0], input_shape[1], input_shape[2]*2)            return output_shape因為某些原因:K.int_shape(x) (None, 128, 128, 7)但K.int_shape(K.zeros_like(x)) (None, None, None, 7)在doc 中 instantiates an all-zeros variable of the same shape as another tensor,有什么問題?更新:連接不起作用的問題:ValueError: A `Concatenate` layer requires inputs with matching shapes except for the concat axis. Got inputs shapes: [(None, 128, 128, 7), (None, None, None, 7)]
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 439 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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