Skip to content

Commit

Permalink
fix(lidar_centerpoint): fix function sigmoid() (tier4#1555)
Browse files Browse the repository at this point in the history
fix(lidar_centerpoint): fix function sigmoid() (tier4#1545)

Signed-off-by: WfHit <[email protected]>
  • Loading branch information
WfHit authored and boyali committed Sep 28, 2022
1 parent 944fe13 commit 6c2882a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ struct score_greater
__device__ bool operator()(const Box3D & lb, const Box3D & rb) { return lb.score > rb.score; }
};

__device__ inline float sigmoid(float x) { return 1.0f / expf(-x); }
__device__ inline float sigmoid(float x) { return 1.0f / (1.0f + expf(-x)); }

__global__ void generateBoxes3D_kernel(
const float * out_heatmap, const float * out_offset, const float * out_z, const float * out_dim,
Expand Down

0 comments on commit 6c2882a

Please sign in to comment.