/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/nnacl/int8/ |
D | arithmetic_self_int8.c | 32 int32_t output_tmp = round(floorf(input[i] * in_scale + bias) / out_scale) + out_zp; in Int8ElementFloor() local 33 if (output_tmp > para.output_activation_max_) { in Int8ElementFloor() 35 } else if (output_tmp < para.output_activation_min_) { in Int8ElementFloor() 38 output[i] = (int8_t)output_tmp; in Int8ElementFloor() 51 int32_t output_tmp = round(round(input[i] * in_scale + bias) / out_scale) + out_zp; in Int8ElementRound() local 52 if (output_tmp > para.output_activation_max_) { in Int8ElementRound() 54 } else if (output_tmp < para.output_activation_min_) { in Int8ElementRound() 57 output[i] = (int8_t)output_tmp; in Int8ElementRound() 70 int32_t output_tmp = round(ceil(input[i] * in_scale + bias) / out_scale) + out_zp; in Int8ElementCeil() local 71 if (output_tmp > para.output_activation_max_) { in Int8ElementCeil() [all …]
|
D | batch_to_space_int8.c | 44 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceNoCropForNHWCInt8() local 45 output_tmp = output_tmp > 127 ? 127 : output_tmp; in BatchToSpaceNoCropForNHWCInt8() 46 output_tmp = output_tmp < -128 ? -128 : output_tmp; in BatchToSpaceNoCropForNHWCInt8() 47 output[output_offset++] = output_tmp; in BatchToSpaceNoCropForNHWCInt8() 99 int32_t output_tmp = round(input[in_offset + c] * scale + bias) + output_zp; in BatchToSpaceForNHWCInt8() local 100 output_tmp = output_tmp > 127 ? 127 : output_tmp; in BatchToSpaceForNHWCInt8() 101 output_tmp = output_tmp < -128 ? -128 : output_tmp; in BatchToSpaceForNHWCInt8() 102 output[output_offset++] = output_tmp; in BatchToSpaceForNHWCInt8()
|
D | batchnorm_int8.c | 27 int32_t output_tmp = round(input_ptr[u * param->channel_ + c] * alpha_ptr[c] + beta_ptr[c]); in BatchNormInt8() local 28 output_tmp = output_tmp > 127 ? 127 : output_tmp; in BatchNormInt8() 29 output_tmp = output_tmp < -128 ? -128 : output_tmp; in BatchNormInt8() 30 output_ptr[u * param->channel_ + c] = (int8_t)output_tmp; in BatchNormInt8()
|
D | leaky_relu_int8.c | 34 int32_t output_tmp = round(inputs[j] * quant_prelu_parm->slope_ * scale + bias) + output_zp; in DoLeakReluInt8() local 35 if (output_tmp > 127) { in DoLeakReluInt8() 37 } else if (output_tmp < -128) { in DoLeakReluInt8() 40 output_ptr[j] = (int8_t)output_tmp; in DoLeakReluInt8() 43 int32_t output_tmp = round(inputs[j] * scale + bias) + output_zp; in DoLeakReluInt8() local 44 if (output_tmp > 127) { in DoLeakReluInt8() 46 } else if (output_tmp < -128) { in DoLeakReluInt8() 49 output_ptr[j] = (int8_t)output_tmp; in DoLeakReluInt8()
|
D | depth_to_space_int8.c | 42 int32_t output_tmp = round(input[in_offset + m] * scale + bias) + output_zp; in DepthToSpaceForNHWCInt8() local 43 output_tmp = output_tmp > 127 ? 127 : output_tmp; in DepthToSpaceForNHWCInt8() 44 output_tmp = output_tmp < -128 ? -128 : output_tmp; in DepthToSpaceForNHWCInt8() 45 output[out_offset + m] = output_tmp; in DepthToSpaceForNHWCInt8()
|
D | concat_int8.c | 49 int32_t output_tmp = round(input_ptr[j] * scale + bias) + output_zp; in Int8Concat() local 50 output_tmp = output_tmp > min_int8 ? output_tmp : min_int8; in Int8Concat() 51 output_tmp = output_tmp < max_int8 ? output_tmp : max_int8; in Int8Concat() 52 output[j] = (int8_t)output_tmp; in Int8Concat()
|
D | crop_int8.c | 65 int32_t output_tmp = round(in_ptr[i] * scale + bias) + out_zp; in Int8Crop1D() local 66 if (output_tmp > para->quant_arg.output_activation_max_) { in Int8Crop1D() 68 } else if (output_tmp < para->quant_arg.output_activation_min_) { in Int8Crop1D() 71 out_ptr[i] = (int8_t)output_tmp; in Int8Crop1D() 107 int32_t output_tmp = round(in_ptr[i] * scale + bias) + out_zp; in Int8Crop2D() local 108 if (output_tmp > para->quant_arg.output_activation_max_) { in Int8Crop2D() 110 } else if (output_tmp < para->quant_arg.output_activation_min_) { in Int8Crop2D() 113 out_ptr[i] = (int8_t)output_tmp; in Int8Crop2D() 161 int32_t output_tmp = round(in_ptr[i] * scale + bias) + out_zp; in Int8Crop3D() local 162 if (output_tmp > para->quant_arg.output_activation_max_) { in Int8Crop3D() [all …]
|
D | squeeze_int8.c | 30 int32_t output_tmp = round(input_ptr[j] * scale + bias) + output_zp; in SqueezeInt8() local 31 if (output_tmp > 127) { in SqueezeInt8() 33 } else if (output_tmp < -128) { in SqueezeInt8() 36 output_ptr[j] = (int8_t)output_tmp; in SqueezeInt8()
|
D | reshape_int8.c | 30 int32_t output_tmp = round(input_ptr[i] * scale + bias) + output_zp; in Int8Reshape() local 31 if (output_tmp > para.output_activation_max_) { in Int8Reshape() 33 } else if (output_tmp < para.output_activation_min_) { in Int8Reshape() 36 output_ptr[i] = (int8_t)output_tmp; in Int8Reshape()
|
D | split_int8.c | 59 int32_t output_tmp = round(src[j] * scale + bias) + out_zp; in Int8DoSplit() local 60 if (output_tmp > param->quant_arg_.output_activation_max_) { in Int8DoSplit() 62 } else if (output_tmp < param->quant_arg_.output_activation_min_) { in Int8DoSplit() 65 dst[j] = (int8_t)output_tmp; in Int8DoSplit()
|
D | conv_depthwise_int8.c | 165 int8_t *output_tmp = output; in ConvDw3x3Int8Window() local 190 *output_tmp++ = (tmp_buffer[c]); in ConvDw3x3Int8Window() 201 *output_tmp++ = (tmp_buffer[c]); in ConvDw3x3Int8Window()
|
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/ |
D | dropout_grad_kernel.cc | 87 float *output_tmp = reinterpret_cast<float *>(workspace[1]->addr); in DropoutBackwardKernel() local 93 DropoutGrad(input_tmp, mask_tmp, output_tmp, SizeToInt(num_count_), scale); in DropoutBackwardKernel() 95 output[i] = static_cast<float16>(output_tmp[i]); in DropoutBackwardKernel()
|
/third_party/gstreamer/gstplugins_bad/sys/d3d11/ |
D | gstd3d11screencapture.cpp | 1938 ComPtr < IDXGIOutput > output_tmp; in gst_d3d11_screen_capture_find_output_for_monitor() local 1941 hr = adapter_tmp->EnumOutputs (output_idx, &output_tmp); in gst_d3d11_screen_capture_find_output_for_monitor() 1945 hr = output_tmp->GetDesc (&desc); in gst_d3d11_screen_capture_find_output_for_monitor() 1953 *output = output_tmp.Detach (); in gst_d3d11_screen_capture_find_output_for_monitor() 1982 ComPtr < IDXGIOutput > output_tmp; in gst_d3d11_screen_capture_find_primary_monitor() local 1986 hr = adapter_tmp->EnumOutputs (output_idx, &output_tmp); in gst_d3d11_screen_capture_find_primary_monitor() 1990 hr = output_tmp->GetDesc (&desc); in gst_d3d11_screen_capture_find_primary_monitor() 2004 *output = output_tmp.Detach (); in gst_d3d11_screen_capture_find_primary_monitor() 2034 ComPtr < IDXGIOutput > output_tmp; in gst_d3d11_screen_capture_find_nth_monitor() local 2038 hr = adapter_tmp->EnumOutputs (output_idx, &output_tmp); in gst_d3d11_screen_capture_find_nth_monitor() [all …]
|
/third_party/mindspore/mindspore/ccsrc/vm/ |
D | backend.cc | 674 VectorRef output_tmp; in IsGraphOutputValueNodeOrParameter() local 676 TensorValueToVector(value, &output_tmp); in IsGraphOutputValueNodeOrParameter() 677 if (output_tmp.size() == 1) { in IsGraphOutputValueNodeOrParameter() 678 *outputs = std::move(output_tmp); in IsGraphOutputValueNodeOrParameter() 679 } else if (output_tmp.size() > 1) { in IsGraphOutputValueNodeOrParameter() 680 outputs->emplace_back(output_tmp); in IsGraphOutputValueNodeOrParameter()
|
/third_party/mindspore/mindspore/ops/_op_impl/_custom_op/ |
D | img2col_impl.py | 853 …output_tmp = [n_shape * int(h_shape // stride_h) * int(w_shape // stride_w), filter_h * filter_w *… 854 output_shape = [output_tmp[1] // 16, output_tmp[0] // 16, 16, 16]
|
/third_party/weston/compositor/ |
D | main.c | 1962 struct wet_output *output, *output_tmp; in wet_compositor_destroy_layout() local 1966 wl_list_for_each_safe(output, output_tmp, in wet_compositor_destroy_layout()
|