Skip to content

Commit

Permalink
FIX: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
T-K-233 committed Jul 11, 2024
1 parent aa71c8a commit 79b7224
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion nn/functional/nn_relu.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ void NN_relu(Tensor *y, Tensor *x) {

switch (y->dtype) {
case DTYPE_F16:
NN__maximum1_f16(y->size, (float *)y->data, 1, (float *)x->data, 1, 0.0f);
NN__maximum1_f16(y->size, (float16_t *)y->data, 1, (float16_t *)x->data, 1, 0.0f);
return;
case DTYPE_F32:
NN__maximum1_f32(y->size, (float *)y->data, 1, (float *)x->data, 1, 0.0f);
Expand Down
2 changes: 2 additions & 0 deletions nn/impl/minimum1.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
#include <stddef.h>
#include <stdint.h>

#include "nn_float16.h"


void NN__minimum1_f32(size_t n,
float *y, size_t incy,
Expand Down

0 comments on commit 79b7224

Please sign in to comment.