Skip to content

Commit

Permalink
replace expandedDimsTensor->getDimensions().d[0] with expandedDims.nb…
Browse files Browse the repository at this point in the history
…Dims

Signed-off-by: Ruoqian Guo <[email protected]>
  • Loading branch information
ruoqianguo committed Feb 10, 2021
1 parent bf5718d commit 178eab3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/conversion/converters/impl/expand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ bool add_expand_dynamic(
bool is_expand_layer) {
auto input_dims = in->getDimensions();
auto input_rank = in->getDimensions().nbDims;
auto output_rank = expandedDimsTensor->getDimensions().d[0];
auto output_rank = expandedDims.nbDims;
TRTORCH_CHECK(
input_rank <= output_rank,
"Number of dimensions of the desired expansion must be greater than or equal to the number of input dimensions");
Expand Down

0 comments on commit 178eab3

Please sign in to comment.