"ml/vscode:/vscode.git/clone" did not exist on "548a9f56a6315316481a9a901f77922cb77e0f68"
Unverified Commit 1704bb04 authored by Charlie Lin's avatar Charlie Lin Committed by GitHub
Browse files

fix bug size_t -> std::size_t (#1350)

declare a missing std::size
parent fa3c21fa
...@@ -60,7 +60,7 @@ std::vector<std::size_t> calc_dyn_auto_pad(std::vector<std::size_t> tensor_lens, ...@@ -60,7 +60,7 @@ std::vector<std::size_t> calc_dyn_auto_pad(std::vector<std::size_t> tensor_lens,
{ {
std::vector<std::size_t> padding; std::vector<std::size_t> padding;
padding.resize(2 * k_lens.size()); padding.resize(2 * k_lens.size());
for(size_t i = 0; i < padding.size() / 2; i++) for(std::size_t i = 0; i < padding.size() / 2; i++)
{ {
std::ptrdiff_t input_dim = tensor_lens[i]; std::ptrdiff_t input_dim = tensor_lens[i];
std::ptrdiff_t stride = strides[i]; std::ptrdiff_t stride = strides[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment