edward2 icon indicating copy to clipboard operation
edward2 copied to clipboard

Unable to use heteroscedastic layers in tf.keras

Open keertika-11 opened this issue 3 years ago • 0 comments

TypeError: Dimension value must be integer or None or have an __index__ method, got value '<attribute 'shape' of 'numpy.generic' objects>' with type '<class 'getset_descriptor'>'

hidden_layer = tf.keras.layers.Dense(16)
inputs = tf.keras.Input((224,224,3))
out = hidden_layer(inputs)
output_layer = ed.layers.MCSoftmaxDense(num_classes=2)
output_layer(out)

keertika-11 avatar Aug 05 '22 08:08 keertika-11