Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yajiedesign committed Nov 30, 2015
1 parent 6c1dd42 commit fcf51b3
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions src/operator/mshadow_op.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,27 +124,27 @@ struct log_grad {
};

struct cos {
MSHADOW_XINLINE static real_t Map(real_t a) {
return cosf(a);
}
MSHADOW_XINLINE static real_t Map(real_t a) {
return cosf(a);
}
};

struct cos_grad {
MSHADOW_XINLINE static real_t Map(real_t a) {
return -sinf(a);
}
MSHADOW_XINLINE static real_t Map(real_t a) {
return -sinf(a);
}
};

struct sin {
MSHADOW_XINLINE static real_t Map(real_t a) {
return sinf(a);
}
MSHADOW_XINLINE static real_t Map(real_t a) {
return sinf(a);
}
};

struct sin_grad {
MSHADOW_XINLINE static real_t Map(real_t a) {
return cosf(a);
}
MSHADOW_XINLINE static real_t Map(real_t a) {
return cosf(a);
}
};
struct square {
MSHADOW_XINLINE static real_t Map(real_t a) {
Expand Down Expand Up @@ -181,9 +181,9 @@ struct sign {
}
};
struct sign_grad {
MSHADOW_XINLINE static real_t Map(real_t a) {
return 0.0f;
}
MSHADOW_XINLINE static real_t Map(real_t a) {
return 0.0f;
}
};
/*! \brief used for generate element of power */
struct power {
Expand Down

0 comments on commit fcf51b3

Please sign in to comment.