Skip to content

Conversation

@natinew77-creator
Copy link

Refines acme.tf.losses.distributional.categorical to raise a descriptive TypeError if inputs do not have the expected values and logits properties.

This addresses Issue #308, where users experienced confusing AttributeError: 'Tensor' object has no attribute 'values' when inadvertently passing raw Tensors instead of DiscreteValuedDistribution objects. This improved validation provides immediate, actionable feedback to the developer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant