mirror of
https://github.com/facebook/zstd.git
synced 2025-12-11 00:06:10 -05:00
Update minimal training sample size
This commit is contained in:
parent
1a14f8639c
commit
16e75e8804
@ -555,8 +555,8 @@ static int COVER_ctx_init(COVER_ctx_t *ctx, const void *samplesBuffer,
|
|||||||
(U32)(totalSamplesSize>>20), (COVER_MAX_SAMPLES_SIZE >> 20));
|
(U32)(totalSamplesSize>>20), (COVER_MAX_SAMPLES_SIZE >> 20));
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
/* Check if there's training sample */
|
/* Check if there are at least 5 training samples */
|
||||||
if (nbTrainSamples < 1) {
|
if (nbTrainSamples < 5) {
|
||||||
DISPLAYLEVEL(1, "Total number of training samples is %u and is invalid.", nbTrainSamples);
|
DISPLAYLEVEL(1, "Total number of training samples is %u and is invalid.", nbTrainSamples);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user