Skip to content

Instantly share code, notes, and snippets.

@MArpogaus
MArpogaus / Traceback
Created May 23, 2022 14:32
DistributionLambda in conjunction with TransformedDistribution and ScalarFunctionWithInferredInverse raises Exception
Traceback (most recent call last):
File "cml/old_faithful.py", line 108, in <module>
flow_model.add(
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/tensorflow/python/training/tracking/base.py", line 629, in _method_wrapper
result = method(self, *args, **kwargs)
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/keras/utils/traceback_utils.py", line 67, in error_handler
raise e.with_traceback(filtered_tb) from None
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/tensorflow_probability/python/layers/distribution_layer.py", line 220, in __call__
distribution, _ = super(DistributionLambda, self).__call__(
File "/opt/hostedtoolcache/Python/3.8.12/x64/lib/python3.8/site-packages/tensorflow_probability/python/layers/distribution_layer.py", line 226, in call