UseWeights as in CPU
@@ -33,9 +33,8 @@ namespace NCatboostCuda {
TMetricHolder Compute(const IGpuMetric* metric) final {
CB_ENSURE(Point.GetObjectsSlice().Size(), "Set point first");
auto targets = Target.GetTarget().GetTargets().ConstCopyView();
-
TConstVec weights;
- if (metric->GetCpuMetric().UseWeights) {
+ if (metric->GetCpuMetric().UseWeights.IsIgnored() || metric->GetCpuMetric().UseWeights) {
weights = Target.GetTarget().GetWeights().ConstCopyView();
} else {
using TVec = typename TTarget::TVec;
