Skip to content

Commit

Permalink
1.4.0 patch (zhanghang1989#246)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghang1989 committed Mar 16, 2020
1 parent ae218bf commit 90c6a95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions encoding/lib/cpu/nms_cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ std::vector<at::Tensor> Non_Max_Suppression_CPU(
AT_ASSERT(input.size(2) == 4);
AT_ASSERT(input.is_contiguous());
AT_ASSERT(scores.is_contiguous());
AT_ASSERT(input.type().scalarType() == at::kFloat || input.type().scalarType() == at::kDouble)
AT_ASSERT(scores.type().scalarType() == at::kFloat || scores.type().scalarType() == at::kDouble)
AT_ASSERT(input.type().scalarType() == at::kFloat || input.type().scalarType() == at::kDouble);
AT_ASSERT(scores.type().scalarType() == at::kFloat || scores.type().scalarType() == at::kDouble);
AT_ASSERT(input.is_contiguous());
AT_ASSERT(scores.is_contiguous());

Expand Down
4 changes: 2 additions & 2 deletions encoding/lib/gpu/nms_kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ std::vector<at::Tensor> Non_Max_Suppression_CUDA(
AT_ASSERT(input.size(2) == 4);
AT_ASSERT(input.is_contiguous());
AT_ASSERT(scores.is_contiguous());
AT_ASSERT(input.type().scalarType() == at::kFloat || input.type().scalarType() == at::kDouble)
AT_ASSERT(scores.type().scalarType() == at::kFloat || scores.type().scalarType() == at::kDouble)
AT_ASSERT(input.type().scalarType() == at::kFloat || input.type().scalarType() == at::kDouble);
AT_ASSERT(scores.type().scalarType() == at::kFloat || scores.type().scalarType() == at::kDouble);

auto num_boxes = input.size(1);
auto batch_size = input.size(0);
Expand Down

0 comments on commit 90c6a95

Please sign in to comment.