3D-Unet--Tensorflow icon indicating copy to clipboard operation
3D-Unet--Tensorflow copied to clipboard

global_attention_3d error

Open chaoshunh opened this issue 3 years ago • 1 comments

it should be

new_shape = tf.concat([tf.shape(input=q)[0:-1],[v.shape[-1]]],0)

instead of

new_shape=tf.concat([tf.shape(input=q)[0:-1],[v.shape[-1].value]],0)

chaoshunh avatar Mar 11 '21 05:03 chaoshunh

Yeah, v is a tensor at this stage, so I did not found as well v.shape having a value attribute.

kkedich avatar Feb 11 '24 21:02 kkedich