Merged PR 25518: Upgrade Azure Pipelines to macos-12

macos-10.15 will become unsupported in December 2022. Changes:
* Upgrade Azure DevOps to macos-12
* Pull https://github.com/marian-nmt/sentencepiece/pull/14
* Fix clang 13 errors as in https://github.com/marian-nmt/marian-dev/pull/939
This commit is contained in:
Roman Grundkiewicz 2022-09-15 06:18:42 +00:00
parent 5d466bc367
commit a47912d9f1
3 changed files with 2 additions and 4 deletions

View File

@ -328,7 +328,7 @@ stages:
displayName: macOS CPU clang
pool:
vmImage: macos-10.15
vmImage: macos-12
steps:
- checkout: self

@ -1 +1 @@
Subproject commit 5312a306c4c0a458e29a8882ebfb42a179aaf580
Subproject commit 31ac8e88760f48d31843eeed36136458df0f60aa

View File

@ -130,7 +130,6 @@ private:
int totalSize = (int)graphs_[0]->params()->vals()->size();
int shardSize = (int)ceil(totalSize / (float)graphs_.size());
int pos = 0;
for(auto graph : graphs_) {
int __size__ = std::min(shardSize, totalSize);
@ -145,7 +144,6 @@ private:
tmpTensors_.push_back(tmp);
// move to next shard
pos += __size__;
totalSize -= __size__;
}
}