1- /* Copyright © 2017-2023 ABBYY
1+ /* Copyright © 2017-2024 ABBYY
2+
23Licensed under the Apache License, Version 2.0 (the "License");
34you may not use this file except in compliance with the License.
45You may obtain a copy of the License at
@@ -20,7 +21,7 @@ limitations under the License.
2021
2122class CPyDistributedDataset : public IDistributedDataset {
2223public:
23- CPyDistributedDataset ( const py::object& data ) : getData( data ) {};
24+ CPyDistributedDataset ( const py::object& data ) : getData( data ) {}
2425 int SetInputBatch ( CDnn& dnn, int thread ) override ;
2526private:
2627 py::object getData;
@@ -29,13 +30,14 @@ class CPyDistributedDataset : public IDistributedDataset {
2930class CPyDistributedTraining : public CDistributedTraining {
3031public:
3132 CPyDistributedTraining ( CDnn& dnn, int count, TDistributedInitializer initializer, int seed )
32- : CDistributedTraining( dnn, count, initializer, seed ) {};
33+ : CDistributedTraining( dnn, count, initializer, seed ) {}
3334 CPyDistributedTraining ( CArchive& archive, int count, TDistributedInitializer initializer, int seed )
34- : CDistributedTraining( archive, count, initializer, seed ) {};
35+ : CDistributedTraining( archive, count, initializer, seed ) {}
3536 CPyDistributedTraining ( CDnn& dnn, const CArray<int >& cudaDevs, TDistributedInitializer initializer, int seed )
36- : CDistributedTraining( dnn, cudaDevs, initializer, seed ) {};
37+ : CDistributedTraining( dnn, cudaDevs, initializer, seed ) {}
3738 CPyDistributedTraining ( CArchive& archive, const CArray<int >& cudaDevs, TDistributedInitializer initializer, int seed )
38- : CDistributedTraining( archive, cudaDevs, initializer, seed ) {};
39+ : CDistributedTraining( archive, cudaDevs, initializer, seed ) {}
40+
3941 void Run ( const py::object& data );
4042 void RunAndBackward ( const py::object& data );
4143 void Learn ( const py::object& data );
@@ -46,4 +48,4 @@ class CPyDistributedTraining : public CDistributedTraining {
4648 void Save ( const std::string& path );
4749};
4850
49- void InitializeDistributedTraining (py::module & m);
51+ void InitializeDistributedTraining ( py::module & m );
0 commit comments