| 1116 | class TColumnsQuantizer { |
| 1117 | public: |
| 1118 | TColumnsQuantizer( |
| 1119 | bool clearSrcObjectsData, |
| 1120 | const TQuantizationOptions& options, |
| 1121 | const TIncrementalDenseIndexing& incrementalDenseIndexing, |
| 1122 | const TFeaturesLayout& featuresLayout, |
| 1123 | const TFeaturesArraySubsetIndexing* quantizedDataSubsetIndexing, |
| 1124 | NPar::ILocalExecutor* localExecutor, |
| 1125 | TRawObjectsData* rawObjectsData, |
| 1126 | TQuantizedObjectsData* quantizedObjectsData |
| 1127 | ) |
| 1128 | : ClearSrcObjectsData(clearSrcObjectsData) |
| 1129 | , Options(options) |
| 1130 | , IncrementalDenseIndexing(incrementalDenseIndexing) |
| 1131 | , FeaturesLayout(featuresLayout) |
| 1132 | , QuantizedDataSubsetIndexing(quantizedDataSubsetIndexing) |
| 1133 | , LocalExecutor(localExecutor) |
| 1134 | , RawObjectsData(rawObjectsData) |
| 1135 | , QuantizedObjectsData(quantizedObjectsData) |
| 1136 | { |
| 1137 | ui64 cpuRamUsage = NMemInfo::GetMemInfo().RSS; |
| 1138 | OutputWarningIfCpuRamUsageOverLimit(cpuRamUsage, options.CpuRamLimit); |
| 1139 | |
| 1140 | ResourceConstrainedExecutor.ConstructInPlace( |
| 1141 | "CPU RAM", |
| 1142 | options.CpuRamLimit - Min(cpuRamUsage, options.CpuRamLimit), |
| 1143 | /*lenientMode*/ true, |
| 1144 | localExecutor |
| 1145 | ); |
| 1146 | } |
| 1147 | |
| 1148 | public: |
| 1149 | template < |
nothing calls this directly
no test coverage detected