mirror of
https://github.com/marian-nmt/marian.git
synced 2024-10-05 19:17:10 +03:00
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:
parent
5d466bc367
commit
a47912d9f1
@ -328,7 +328,7 @@ stages:
|
||||
displayName: macOS CPU clang
|
||||
|
||||
pool:
|
||||
vmImage: macos-10.15
|
||||
vmImage: macos-12
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
|
2
src/3rd_party/sentencepiece
vendored
2
src/3rd_party/sentencepiece
vendored
@ -1 +1 @@
|
||||
Subproject commit 5312a306c4c0a458e29a8882ebfb42a179aaf580
|
||||
Subproject commit 31ac8e88760f48d31843eeed36136458df0f60aa
|
@ -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__;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user