Home
last modified time | relevance | path

Searched defs:reduction (Results 1 – 25 of 55) sorted by relevance

123

/third_party/skia/src/pathops/
DSkReduceOrder.cpp17 static int coincident_line(const SkDQuad& quad, SkDQuad& reduction) { in coincident_line()
22 static int reductionLineCount(const SkDQuad& reduction) { in reductionLineCount()
26 static int vertical_line(const SkDQuad& quad, SkDQuad& reduction) { in vertical_line()
32 static int horizontal_line(const SkDQuad& quad, SkDQuad& reduction) { in horizontal_line()
39 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) { in check_linear()
103 static int coincident_line(const SkDCubic& cubic, SkDCubic& reduction) { in coincident_line()
108 static int reductionLineCount(const SkDCubic& reduction) { in reductionLineCount()
112 static int vertical_line(const SkDCubic& cubic, SkDCubic& reduction) { in vertical_line()
118 static int horizontal_line(const SkDCubic& cubic, SkDCubic& reduction) { in horizontal_line()
125 static int check_quadratic(const SkDCubic& cubic, SkDCubic& reduction) { in check_quadratic()
[all …]
/third_party/flutter/skia/src/pathops/
DSkReduceOrder.cpp17 static int coincident_line(const SkDQuad& quad, SkDQuad& reduction) { in coincident_line()
22 static int reductionLineCount(const SkDQuad& reduction) { in reductionLineCount()
26 static int vertical_line(const SkDQuad& quad, SkDQuad& reduction) { in vertical_line()
32 static int horizontal_line(const SkDQuad& quad, SkDQuad& reduction) { in horizontal_line()
39 int minX, int maxX, int minY, int maxY, SkDQuad& reduction) { in check_linear()
103 static int coincident_line(const SkDCubic& cubic, SkDCubic& reduction) { in coincident_line()
108 static int reductionLineCount(const SkDCubic& reduction) { in reductionLineCount()
112 static int vertical_line(const SkDCubic& cubic, SkDCubic& reduction) { in vertical_line()
118 static int horizontal_line(const SkDCubic& cubic, SkDCubic& reduction) { in horizontal_line()
125 static int check_quadratic(const SkDCubic& cubic, SkDCubic& reduction) { in check_quadratic()
[all …]
/third_party/mindspore/tests/st/ops/gpu/
Dtest_nll_loss.py27 def __init__(self, reduction): argument
36 def __init__(self, reduction): argument
45 def nll_loss_template(nptype_input, nptype_weight, reduction): argument
86 def nll_loss_grad_template(nptype_input, nptype_weight, reduction): argument
Dtest_loss.py26 def __init__(self, reduction='mean', weights=1.0): argument
76 def __init__(self, reduction='mean'): argument
Dtest_bce_with_logits_loss.py27 def __init__(self, reduction): argument
Dtest_kl_div_op.py29 def __init__(self, reduction="none"): argument
/third_party/mindspore/mindspore/core/ops/
Dbinary_cross_entropy.cc45 auto reduction = Reduction(GetValue<int64_t>(primitive->GetAttr(kReduction))); in BinaryCrossEntroyInferShape() local
73 void BinaryCrossEntropy::set_reduction(const Reduction &reduction) { in set_reduction()
82 void BinaryCrossEntropy::Init(const Reduction &reduction) { this->set_reduction(reduction); } in Init()
Dsoft_margin_loss.cc36 int64_t reduction; in SoftMarginLossInferShape() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dloss_with_reduction_impl.cu30 __global__ void Copy(T *loss, T *tmp_loss, int reduction, int input_size) { in Copy()
111 void Reduce(T *tmp_loss, const int &size, S *denom, const int &reduction, T *output, cudaStream_t s… in Reduce()
137 __global__ void KLDivLossKernel(const int input_size, const int reduction, const T *input_x, const … in KLDivLossKernel()
156 void KLDivLoss(const int &input_size, const int &reduction, const T *input_x, const T *input_y, T *… in KLDivLoss()
176 __global__ void KLDivLossGradKernel(const int input_size, const int reduction, const T *input_x, co… in KLDivLossGradKernel()
200 void KLDivLossGrad(const int &input_size, const int &reduction, const T *input_x, const T *input_y,… in KLDivLossGrad()
207 __global__ void BinaryCrossEntropyLossKernel(const int input_size, const int reduction, const T *in… in BinaryCrossEntropyLossKernel()
237 void BinaryCrossEntropyLoss(const int &input_size, const int &reduction, const T *input_x, const T … in BinaryCrossEntropyLoss()
257 __global__ void BinaryCrossEntropyLossGradKernel(const int input_size, const int reduction, const T… in BinaryCrossEntropyLossGradKernel()
297 void BinaryCrossEntropyLossGrad(const int &input_size, const int &reduction, const T *input_x, cons… in BinaryCrossEntropyLossGrad()
[all …]
/third_party/mindspore/mindspore/nn/loss/
Dloss.py49 def __init__(self, reduction='mean'): argument
111 def __init__(self, reduction='mean'): argument
187 def __init__(self, reduction='mean'): argument
373 def __init__(self, reduction='mean'): argument
489 def __init__(self, reduction='mean'): argument
562 reduction='none'): argument
810 reduction='none'): argument
1040 def __init__(self, weight=None, reduction='none'): argument
1112 def __init__(self, margin=0.0, reduction="mean"): argument
1204 def __init__(self, reduction='mean', weight=None, pos_weight=None): argument
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/fp32_grad/
Dbinary_cross_entropy.c20 static void BinaryCrossEntropyLossKernel(const int input_size, const int reduction, const float *in… in BinaryCrossEntropyLossKernel()
38 void BinaryCrossEntropy(const int input_size, const int reduction, const float *input_x, const floa… in BinaryCrossEntropy()
Dbinary_cross_entropy_grad.h23 int reduction; member
Dbinary_cross_entropy.h23 int reduction; member
Dbinary_cross_entropy_grad.c21 int BinaryCrossEntropyGrad(const int input_size, const int reduction, const float *input_x, const f… in BinaryCrossEntropyGrad()
/third_party/mindspore/mindspore/core/ops/grad/
Dbinary_cross_entropy_grad.cc54 void BinaryCrossEntropyGrad::Init(const Reduction &reduction) { set_reduction(reduction); } in Init()
56 void BinaryCrossEntropyGrad::set_reduction(const Reduction &reduction) { in set_reduction()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Dbinary_cross_entropy_cpu_kernel.cc27 void BinaryCrossEntropyCpuKernel::LaunchToScalar(const int &input_size, const int &reduction, T *lo… in LaunchToScalar()
120 const std::string reduction = AnfAlgo::GetNodeAttr<string>(kernel_node, REDUCTION); in InitKernel() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/infer/
Dbinary_cross_entropy_infer.c30 int reduction = param->reduction; in BinaryCrossEntropyInferShape() local
/third_party/mindspore/tests/ut/python/metrics/
Dtest_cosine_similarity.py41 def sklearn_cosine_similarity(test_data, similarity, reduction): argument
/third_party/mindspore/tests/st/networks/models/resnet50/src/
DCrossEntropySmooth.py26 def __init__(self, sparse=True, reduction='mean', smooth_factor=0., num_classes=1000): argument
/third_party/mindspore/mindspore/nn/metrics/
Dcosine_similarity.py51 def __init__(self, similarity='cosine', reduction='none', zero_diagonal=True): argument
/third_party/skia/third_party/externals/dawn/src/dawn_native/d3d12/
DSamplerD3D12.cpp72 D3D12_FILTER_REDUCTION_TYPE reduction = in Sampler() local
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/gpu/
Dbce_with_logits_loss_fusion.cc45 string reduction = AnfAlgo::GetNodeAttr<std::string>(node, kAttrReduction); in AddReduceNode() local
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/ascend/ir_fission/
Dbce_with_logits_loss_fission.cc47 string reduction = AnfAlgo::GetNodeAttr<std::string>(node, kAttrReduction); in AddReduceNode() local
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dkl_div_loss_grad_kernel.h63 string reduction = GetAttr<string>(kernel_node, "reduction"); in Init() local
Dkl_div_loss_gpu_kernel.h62 string reduction = GetAttr<string>(kernel_node, "reduction"); in Init() local

123