-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
In pytorch, the following is easily possible:
logits = ...
probs = Categorical(logits=logits)
log_prob = probs.log_prob(value)
entropy = probs.entropy()but when I want to achieve something similar in MLX, I have to manually calculate the log_prob and entropy. Is it possible to add support for these methods as it makes working with distributions in MLX much more convenient (at least for me)
Reactions are currently unavailable