Home
last modified time | relevance | path

Searched refs:bias_type (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/estimators/
Darithmetic_count_util.h73 auto bias_type = in GetArithmeticCountForConvAndFullyconnectedOp() local
75 if (bias_type && bias_type.hasStaticShape()) { in GetArithmeticCountForConvAndFullyconnectedOp()
76 *count += bias_type.getNumElements(); in GetArithmeticCountForConvAndFullyconnectedOp()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils_test.cc53 auto bias_type = RankedTensorType::get(bias_shape, builder->getF32Type()); in createLstmCompositeFunc() local
59 SmallVector<mlir::Type, 4> input_types{input_type, weight_type, bias_type, in createLstmCompositeFunc()
/external/tensorflow/tensorflow/lite/delegates/nnapi/
Dnnapi_delegate_signed_quantization_test.cc265 tflite::TensorType bias_type = TensorType_INT32; local
268 bias_type = TensorType_INT64;
270 TensorData bias{bias_type,
Dnnapi_delegate_test.cc634 const auto bias_type = in SetBias() local
636 SetData(bias_, bias_type, data); in SetBias()
1102 const auto bias_type = in SetBias() local
1104 SetData(bias_, bias_type, data); in SetBias()
1227 const auto bias_type = in SetBias() local
1229 SetData(bias_, bias_type, data); in SetBias()
/external/tensorflow/tensorflow/lite/kernels/
Dconv_test.cc88 tflite::TensorType bias_type = TensorType_INT32; local
91 bias_type = TensorType_INT64;
93 TensorData bias{bias_type,
Ddepthwise_conv_test.cc82 tflite::TensorType bias_type = TensorType_INT32; in BaseDepthwiseConvolutionOpModel() local
84 bias_type = TensorType_INT64; in BaseDepthwiseConvolutionOpModel()
86 TensorData bias{bias_type, in BaseDepthwiseConvolutionOpModel()
/external/gemmlowp/meta/generators/
Dtransform_kernels_common.py394 def __init__(self, bias_type, cc_emitter, asm_emitter): argument
396 'BiasAdd<%s>' % bias_type)
/external/tensorflow/tensorflow/compiler/mlir/tosa/transforms/
Dlegalize_tf.cc825 RankedTensorType bias_type = in matchAndRewrite() local
827 auto bias_attr = rewriter.getZeroAttr(bias_type); in matchAndRewrite()
828 auto bias = rewriter.create<tosa::ConstOp>(op->getLoc(), bias_type, in matchAndRewrite()
914 RankedTensorType bias_type = in matchAndRewrite() local
916 auto bias_attr = rewriter.getZeroAttr(bias_type); in matchAndRewrite()
917 auto bias = rewriter.create<tosa::ConstOp>(op->getLoc(), bias_type, in matchAndRewrite()
Dlegalize_tfl.cc1443 RankedTensorType bias_type = in matchAndRewrite() local
1486 if (!bias_type) { in matchAndRewrite()
1491 RankedTensorType bias_type = RankedTensorType::get( in matchAndRewrite() local
1503 bias_attr = DenseElementsAttr::get(bias_type, in matchAndRewrite()
1511 bias_attr = DenseElementsAttr::get(bias_type, in matchAndRewrite()
1515 rewriter.create<tosa::ConstOp>(op->getLoc(), bias_type, bias_attr); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_tf.cc364 auto bias_type = RankedTensorType::get({bias_dim}, elem_type); in matchAndRewrite() local
365 auto bias_attr = rewriter.getZeroAttr(bias_type); in matchAndRewrite()
367 rewriter.create<TF::ConstOp>(op->getLoc(), bias_type, bias_attr); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.cc860 const auto bias_type = in fold() local
869 (has_bias && !bias_type.getElementType().isF32())) { in fold()
875 (has_bias && !bias_type.hasStaticShape())) { in fold()
882 (has_bias && bias_type.getShape().size() != 1)) { in fold()
/external/tensorflow/tensorflow/compiler/mlir/tosa/g3doc/
Dlegalization.md3697 auto bias_type = tensor<bias_shape, tosa.float>
3706 %bias_val = tosa.CONST() {value=[0] * %filter.shape[3]} : () -> bias_type
3733 auto bias_type = tensor<bias_shape, acc_dtype>
3747 %bias_val = tosa.CONST() {value=[0] * %filter.shape[3]} : () -> bias_type
3758 …TED(%input_val, %filter, %bias_val) : (input_type, tensor<%filter_val.type>, bias_type) -> acc_type