deploy: 8a435363bb
This commit is contained in:
11
node_modules/shiki/samples/mojo.sample
generated
vendored
11
node_modules/shiki/samples/mojo.sample
generated
vendored
@@ -1,11 +0,0 @@
|
||||
def softmax(lst):
|
||||
norm = np.exp(lst - np.max(lst))
|
||||
return norm / norm.sum()
|
||||
|
||||
struct NDArray:
|
||||
def max(self) -> NDArray:
|
||||
return self.pmap(SIMD.max)
|
||||
|
||||
struct SIMD[type: DType, width: Int]:
|
||||
def max(self, rhs: Self) -> Self:
|
||||
return (self >= rhs).select(self, rhs)
|
||||
Reference in New Issue
Block a user