Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/core/kernels/
Dbias_op_gpu.cu.cc57 T* output, int32 bias_size) { in BiasNHWCKernel() argument
59 int32 bias_offset = index % bias_size; in BiasNHWCKernel()
66 T* output, int32 bias_size, int32 image_size) { in BiasNCHWKernel() argument
69 int32 bias_offset = index2 % bias_size; in BiasNCHWKernel()
80 const int32 bias_size = channel; in compute() local
82 const int32 total_count = batch * bias_size * image_size; in compute()
91 output, bias_size)); in compute()
96 output, bias_size, image_size)); in compute()
103 T* bias_backprop, int32 bias_size) { in BiasGradNHWC_Naive() argument
105 int32 bias_offset = index % bias_size; in BiasGradNHWC_Naive()
[all …]
Dbias_op.h34 const int64_t bias_size = bias.dimension(0); in operator() local
35 const int64_t rest_size = input.size() / bias_size; in operator()
41 const int bias_size = bias.dimension(0); in operator() local
42 const int rest_size = input.size() / bias_size; in operator()
Dmkl_fused_ops_test.cc105 const int bias_size = filter_count; in VerifyBiasAddTensorsClose() local
106 Tensor bias(dtype, {bias_size}); in VerifyBiasAddTensorsClose()
Dconv_ops_test.cc759 const int bias_size = filter_count; in VerifyBiasAddTensorsNear() local
760 Tensor bias(dtype, {bias_size}); in VerifyBiasAddTensorsNear()
/external/tensorflow/tensorflow/lite/kernels/
Ddepthwise_conv_test.cc52 int bias_size = GetShape(filter_)[3]; in BaseDepthwiseConvolutionOpModel() local
54 bias_ = AddInput({TensorType_FLOAT32, {bias_size}}); in BaseDepthwiseConvolutionOpModel()
72 {bias_size}, in BaseDepthwiseConvolutionOpModel()
85 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseDepthwiseConvolutionOpModel()
Dconv_test.cc54 int bias_size = GetShape(filter_)[0]; in BaseConvolutionOpModel() local
56 bias_ = AddInput({TensorType_FLOAT32, {bias_size}}); in BaseConvolutionOpModel()
74 {bias_size}, in BaseConvolutionOpModel()
87 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in BaseConvolutionOpModel()
/external/tensorflow/tensorflow/core/kernels/neon/
Dneon_depthwise_conv_op.cc130 int64 bias_size = bias_neon_dims.sizes[0]; in Compute() local
132 bias_size * sizeof(float), Allocator::kAllocatorAlignment)); in Compute()
133 memset(bias_ptr, 0, bias_size * sizeof(float)); in Compute()
/external/tensorflow/tensorflow/contrib/fused_conv/python/ops/
Dfused_conv2d_bias_activation_op_test_base.py231 bias_size = filter_in_sizes[-1] # equals to output depth
245 t3 = constant_op.constant(x3, shape=[bias_size], dtype=dtype)
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_test.cc275 int bias_size = GetShape(filter_)[0]; in ConvolutionOpModel() local
277 bias_ = AddInput({TensorType_FLOAT32, {bias_size}}); in ConvolutionOpModel()
283 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in ConvolutionOpModel()
454 int bias_size = GetShape(filter_)[3]; in DepthwiseConvolutionOpModel() local
456 bias_ = AddInput({TensorType_FLOAT32, {bias_size}}); in DepthwiseConvolutionOpModel()
462 TensorData bias{TensorType_INT32, {bias_size}, 0, 0, bias_scale}; in DepthwiseConvolutionOpModel()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/
Doptimized_ops.h195 const int bias_size = bias_shape.FlatSize(); in AddBiasAndEvalActivationFunction() local
197 TFLITE_DCHECK_EQ((array_size % bias_size), 0); in AddBiasAndEvalActivationFunction()
202 for (; array_ptr != array_end_ptr; array_ptr += bias_size) { in AddBiasAndEvalActivationFunction()
204 for (; i <= bias_size - 16; i += 16) { in AddBiasAndEvalActivationFunction()
230 for (; i <= bias_size - 4; i += 4) { in AddBiasAndEvalActivationFunction()
238 for (; i < bias_size; i++) { in AddBiasAndEvalActivationFunction()
246 const int bias_size = bias_shape.FlatSize(); in AddBiasAndEvalActivationFunction()
248 TFLITE_DCHECK_EQ((array_size % bias_size), 0); in AddBiasAndEvalActivationFunction()
250 array_offset += bias_size) { in AddBiasAndEvalActivationFunction()
251 for (int i = 0; i < bias_size; i++) { in AddBiasAndEvalActivationFunction()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/optimized/
Doptimized_ops.h290 const int bias_size = bias_shape.FlatSize(); in AddBiasAndEvalActivationFunction() local
292 TFLITE_DCHECK_EQ((array_size % bias_size), 0); in AddBiasAndEvalActivationFunction()
297 for (; array_ptr != array_end_ptr; array_ptr += bias_size) { in AddBiasAndEvalActivationFunction()
299 for (; i <= bias_size - 16; i += 16) { in AddBiasAndEvalActivationFunction()
325 for (; i <= bias_size - 4; i += 4) { in AddBiasAndEvalActivationFunction()
333 for (; i < bias_size; i++) { in AddBiasAndEvalActivationFunction()
341 const int bias_size = bias_shape.FlatSize(); in AddBiasAndEvalActivationFunction()
343 TFLITE_DCHECK_EQ((array_size % bias_size), 0); in AddBiasAndEvalActivationFunction()
345 array_offset += bias_size) { in AddBiasAndEvalActivationFunction()
346 for (int i = 0; i < bias_size; i++) { in AddBiasAndEvalActivationFunction()