Home
last modified time | relevance | path

Searched refs:BiasType (Results 1 – 11 of 11) sorted by relevance

/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_utils.cc612 template <class BiasType>
613 std::vector<BiasType> SymmetricBiasQuantize(const float* data, in SymmetricBiasQuantize()
616 std::vector<BiasType> buffer(num_elements); in SymmetricBiasQuantize()
617 const BiasType kScale = std::numeric_limits<BiasType>::max(); in SymmetricBiasQuantize()
624 const BiasType quantized_value = in SymmetricBiasQuantize()
625 tflite::SafeCast<BiasType>(TfLiteRound(data[idx] * scaling_factor_inv)); in SymmetricBiasQuantize()
634 template <class BiasType>
643 auto final_buffer = SymmetricBiasQuantize<BiasType>(float_data, num_elements, in SymmetricPerLayerBiasQuantize()
648 size_t buffer_size = num_elements * sizeof(BiasType); in SymmetricPerLayerBiasQuantize()
652 auto output_type = std::is_same<BiasType, std::int32_t>::value in SymmetricPerLayerBiasQuantize()
[all …]
Dquantization_utils.h121 template <typename BiasType>
128 template <typename BiasType>
135 template <typename BiasType>
136 std::vector<BiasType> SymmetricBiasQuantize(const float* data,
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_conv_runner.cc115 template <typename ElementType, typename BiasType, typename OutputType>
185 template <typename ElementType, typename BiasType, typename OutputType,
201 return RunGpuConvForwardActivation<ElementType, BiasType, OutputType>( in RunGpuConvInternalImpl()
210 template <typename ElementType, typename BiasType, typename OutputType,
224 return RunGpuConvForwardActivation<ElementType, BiasType, OutputType>( in RunGpuConvInternalImpl()
235 template <typename ElementType, typename BiasType, typename OutputType>
248 Status run_status = RunGpuConvInternalImpl<ElementType, BiasType, OutputType>( in RunGpuConvImpl()
/external/ComputeLibrary/tests/validation/fixtures/
DQLSTMLayerNormalizationFixture.h60 template <typename InputType, typename BiasType>
61 void fill(InputType &&input_tensor, InputType &&weight_tensor, BiasType &&bias_tensor) in fill()
/external/gemmlowp/meta/
Dtransform_kernels.h54 template <typename BiasType>
67 const BiasType* bias;
/external/XNNPACK/test/
Dfully-connected.cc24 template <class T, class BiasType = T> class FullyConnectedTestBase : public ::testing::Test {
59 bias = std::vector<BiasType>(output_channels); in FullyConnectedTestBase()
104 std::vector<BiasType> bias;
Ddeconvolution-2d.cc23 template <class T, class BiasType = T> class DeconvolutionTestBase : public ::testing::Test {
65 bias = std::vector<BiasType>(groups * group_output_channels); in DeconvolutionTestBase()
109 std::vector<BiasType> bias;
Dunpooling-2d.cc23 template <class T, class BiasType = T> class Unpooling2DTestBase : public ::testing::Test {
Dconvolution-2d.cc25 template <class T, class BiasType = T> class ConvolutionTestBase : public ::testing::Test {
63 bias = std::vector<BiasType>(groups * group_output_channels); in ConvolutionTestBase()
105 std::vector<BiasType> bias;
Ddepthwise-convolution-2d.cc26 template <class T, class BiasType = T> class DepthwiseConvolutionTestBase : public ::testing::Test {
68 bias = std::vector<BiasType>(output_channels); in DepthwiseConvolutionTestBase()
109 std::vector<BiasType> bias;
/external/armnn/src/armnnTestUtils/
DCreateWorkload.hpp2140 using BiasType = armnn::ResolveType<biasDataType>; in CreatePreCompiledWorkloadTest() typedef
2141 std::vector<BiasType> biasData(biasLength); in CreatePreCompiledWorkloadTest()
2142 std::fill(biasData.begin(), biasData.end(), static_cast<BiasType>(0)); in CreatePreCompiledWorkloadTest()