Skip to content

Commit 917ba41

Browse files
authored
Fixed #1384
1 parent 2c56628 commit 917ba41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tensorflow_probability/python/layers/conv_variational.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ def _apply_variational_bias(self, inputs):
381381
# As of Mar 2017, direct addition is significantly slower than
382382
# bias_add when computing gradients. To use bias_add, we collapse Z
383383
# and Y into a single dimension to obtain a 4D input tensor.
384-
outputs_shape = outputs.shape.as_list()
384+
outputs_shape = tf.shape(outputs)
385385
outputs_4d = tf.reshape(outputs,
386386
[outputs_shape[0], outputs_shape[1],
387387
outputs_shape[2] * outputs_shape[3],

0 commit comments

Comments
 (0)