diff options
author | Alexey Bykov <alexei4203@yandex.ru> | 2022-02-10 16:47:16 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:16 +0300 |
commit | 4cadece7a57ab767e762a0bea1995a596aefeb11 (patch) | |
tree | 7649c16cf4b52e994709f6c9e1716c993ca28759 /library/cpp/codecs/codecs.h | |
parent | 143876304996506751ade0b80b3c47f188b9834f (diff) | |
download | ydb-4cadece7a57ab767e762a0bea1995a596aefeb11.tar.gz |
Restoring authorship annotation for Alexey Bykov <alexei4203@yandex.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/codecs/codecs.h')
-rw-r--r-- | library/cpp/codecs/codecs.h | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/library/cpp/codecs/codecs.h b/library/cpp/codecs/codecs.h index cc5e72b285..2d8e56253e 100644 --- a/library/cpp/codecs/codecs.h +++ b/library/cpp/codecs/codecs.h @@ -76,11 +76,11 @@ namespace NCodecs { Trained = t; } - bool TryToLearn(ISequenceReader& r) { - Trained = DoTryToLearn(r); - return Trained; - } - + bool TryToLearn(ISequenceReader& r) { + Trained = DoTryToLearn(r); + return Trained; + } + void Learn(ISequenceReader& r) { LearnX(r, 1); } @@ -110,11 +110,11 @@ namespace NCodecs { protected: virtual void DoLearn(ISequenceReader&) = 0; - virtual bool DoTryToLearn(ISequenceReader& r) { - DoLearn(r); - return true; - } - + virtual bool DoTryToLearn(ISequenceReader& r) { + DoLearn(r); + return true; + } + // so the pipeline codec will know to adjust the sample for the subcodecs virtual void DoLearnX(ISequenceReader& r, double /*sampleSizeMultiplier*/) { DoLearn(r); |