forked from neoml-lib/neoml
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use unity build in OSS tests (neoml-lib#653)
* Compilation works!!!! Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Fix randomziation tests Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Fix name conflict Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Try internal build Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Enable distributed tests only for Windows and Linux Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Revert "Enable distributed tests only for Windows and Linux" This reverts commit 00966ec. Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Switch to updated NeoMLTest Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com> * Switch to actual NeoMLTest version Signed-off-by: Valeriy Fedyunin <valery.fedyunin@abbyy.com>
- Loading branch information
Valeriy Fedyunin
committed
Jun 22, 2022
1 parent
5854899
commit 0ce77e9
Showing
44 changed files
with
710 additions
and
1,393 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* Copyright © 2017-2022 ABBYY Production LLC | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
--------------------------------------------------------------------------------------------------------------*/ | ||
|
||
#pragma once | ||
|
||
namespace NeoMLTest { | ||
|
||
inline CSparseFloatVector generateRandomVector( CRandom& rand, int maxLength = 100, | ||
float minValue = -100., float maxValue = 100. ) | ||
{ | ||
CSparseFloatVector res; | ||
for( int i = 0; i < maxLength; ++i ) { | ||
int index = rand.UniformInt( 0, maxLength - 1 ) ; | ||
res.SetAt( index, static_cast<float>( rand.Uniform( minValue, maxValue ) ) ); | ||
} | ||
return res; | ||
} | ||
|
||
} // namespace NeoMLTest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.