MCPcopy Create free account
hub / github.com/catboost/catboost / Validate

Function Validate

catboost/cuda/cuda_lib/ut/test_cuda_buffer.cpp:406–414  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405 template <class T, class TBuffer>
406 inline void Validate(const TVector<T>& ref, const TBuffer& buffer) {
407 TVector<T> target;
408 buffer.Read(target);
409 UNIT_ASSERT_VALUES_EQUAL(ref.size(), target.size());
410 for (ui64 i = 0; i < ref.size(); ++i) {
411 Y_ASSERT(ref[i] == target[i]);
412 UNIT_ASSERT_VALUES_EQUAL(ref[i], target[i]);
413 }
414 }
415
416 static TStripeMapping SplitBetweenDevicesRandom(TRandom & rng,
417 ui64 objectCount,

Callers 15

RunReshardTestFunction · 0.70
ValidateMethod · 0.50
PurgeMethod · 0.50
ValidateMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50
LoadMethod · 0.50

Calls 2

ReadMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected