Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace softmax with stable version + small corrections #8

Merged
merged 9 commits into from
Jul 4, 2024

Conversation

msluszniak
Copy link
Collaborator

I propose some minor changes:

  1. To find number of dimensions it is better to use Nx.rank
  2. There is a simplified syntax for creating tensors of given type in Nx. Currently the type is not provided but I think it's better here to be explicit
  3. In utils module there is an unstable version of softmax, I suggest to use the stable one from Axon

@msluszniak
Copy link
Collaborator Author

@mkopcins I added the changes that I suggested in the previous PRs. I'm not sure if the names of the functions are in point, so feel free to suggest new ones.

lib/ex_vision/utils.ex Outdated Show resolved Hide resolved
lib/ex_vision/utils.ex Outdated Show resolved Hide resolved
lib/ex_vision/object_detection/generic_detector.ex Outdated Show resolved Hide resolved
@msluszniak msluszniak requested a review from mkopcins July 4, 2024 09:29
@msluszniak msluszniak merged commit 46b111b into software-mansion-labs:main Jul 4, 2024
1 check passed
@msluszniak msluszniak deleted the ms-cleanup branch July 4, 2024 10:37
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.

2 participants