Skip to content

Commit

Permalink
remove useless casts
Browse files Browse the repository at this point in the history
  • Loading branch information
uecker authored and hcmh committed Jun 29, 2024
1 parent 56d65e4 commit cc945de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/linops/grad.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static void grad_op(int D, const long dims[D], int d, unsigned long flags, compl

for (int i = 0; i < N; i++) {

int lsb = (int)ffsl((long)flags2) - 1;
int lsb = ffsl((long)flags2) - 1;
flags2 = MD_CLEAR(flags2, lsb);

md_zfdiff2(D, dims1, lsb, strs, (void*)out + i * strs[d], strs1, in);
Expand Down
2 changes: 1 addition & 1 deletion src/nn/rbf.c
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ const struct nlop_s* nlop_activation_rbf_create(const long dims[3], float Imax,
//The paper states \sigma = (Imax - Imin) / (Nw - 1)
//However sigma is implemented differently, i.e. \sigma = (Imax - Imin) / (Nw)
//C.f. https://github.com/VLOGroup/tensorflow-icg/blob/a11ad61d93d57c83f1af312b84a922e7612ec398/tensorflow/contrib/icg/kernels/activations.cu.cc#L123
data->sigma = (float)(Imax - Imin) / (float)(dims[2]);
data->sigma = (Imax - Imin) / (float)(dims[2]);

long zdims[2] = {dims[0], dims[1]};
long wdims[2] = {dims[0], dims[2]};
Expand Down

0 comments on commit cc945de

Please sign in to comment.