Skip to content

Commit

Permalink
Fix CI bug of test_yolov3 (PaddlePaddle#21)
Browse files Browse the repository at this point in the history
* fill_any_like kernel refactor

* remove useless code of full_like c++ api

* Support Scalar in Tensor Compute Library

* add scalar in dygraph and static graph mode

* keep the basic type for attr, instead of using scalar for all

* merge the code

* start refactor matmul

* move cpu, cuda and other device modules into kernels

* merge code

* polish code in operator.cc

* Fix CI bug of test_yolov3
  • Loading branch information
zyfncg authored Oct 19, 2021
1 parent ff19bd0 commit 1dd0145
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/tcmpt/core/tensor_meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ struct TensorMeta {
offset(offset),
lod(lod) {
int64_t init_numel = paddle::framework::product(dims);
if (init_numel > 0) {
if (init_numel >= 0) {
numel = init_numel;
}
}
Expand Down

0 comments on commit 1dd0145

Please sign in to comment.