Skip to content

Commit

Permalink
WIP adjust conv shape infer
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnick committed Oct 17, 2024
1 parent 23222d6 commit 64c1584
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,9 @@ void append_spatial_shape(const TOp* op,
pooling::valid_dilated_kernel_with_dim(op, filter_dilated.get_length(), dim, i);
}

dim = dim::floor_div(dim - filter_dilated, strides[i]);
dim += 1;

dim = dim::floor_div(dim + strides[i] - filter_dilated, strides[i]);
//dim += 1;
out_shape.push_back(std::move(dim));
}
}
Expand Down

0 comments on commit 64c1584

Please sign in to comment.