geauxeric
MModular
•Created by geauxeric on 5/20/2024 in #community-showcase
Implement and benchmark Softmax algorithms in Mojo
I gave my first try at Mojo, and really love its design.
Did a weekend project on implementing online normalizer calculation of softmax, and made a vlog:
https://youtu.be/5JdP_YAH-iE?si=q7oJgu4ZZ87kv26J
1 replies
MModular
•Created by geauxeric on 5/5/2024 in #questions
type conversion between alias types
A matrix type is defined as
Then a Logits type is defined with Matrix with only 1 column:
Got compile error:
2 replies
MModular
•Created by geauxeric on 5/5/2024 in #questions
Return with move semantics
Is that possible to use the move semantic when returning a value from a function?
The code below would give error:
error: 'Value[dtype]' is not copyable because it has no 'copyinit'
return v
^
mojo: error: failed to parse the provided Mojo source module
3 replies