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

Method Transform

catboost/cuda/cuda_lib/mapping.h:146–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145 template <class TFunc>
146 inline TSingleMapping Transform(TFunc&& trans, ui64 objectSize = 1) const {
147 ui64 devSize = trans(GetObjectsSlice());
148 return TSingleMapping(DeviceId, devSize, objectSize);
149 }
150
151 inline TSingleMapping ChangeDevice(ui32 newDeviceId) const {
152 return TSingleMapping(newDeviceId, Count, SingleObjectSize());

Callers 15

ApplyMethod · 0.45
CompressedSizeImplFunction · 0.45
ReduceToHostImplFunction · 0.45
FilterZeroEntriesFunction · 0.45
CreateFeaturesBlockMethod · 0.45
MakeStripeGroupingMethod · 0.45
CreateGpuGroupingMethod · 0.45
TDocParallelSplitMethod · 0.45
TestMakeFlagsImplFunction · 0.45
BuildFeatureIndexMethod · 0.45

Calls 1

TSingleMappingClass · 0.70

Tested by 3

TestMakeFlagsImplFunction · 0.36
ComputeWeakTargetFunction · 0.36