Home
last modified time | relevance | path

Searched refs:bias_array (Results 1 – 7 of 7) sorted by relevance

/external/tensorflow/tensorflow/lite/toco/graph_transformations/
Densure_bias_vectors.cc68 auto& bias_array = model->GetOrCreateArray(bias_name); in ProcessLinearOperator() local
69 bias_array.data_type = ArrayDataType::kFloat; in ProcessLinearOperator()
70 bias_array.mutable_shape()->mutable_dims()->push_back(depth); in ProcessLinearOperator()
71 auto& bias_buffer = bias_array.GetMutableBuffer<ArrayDataType::kFloat>(); in ProcessLinearOperator()
Didentify_lstm_merge_inputs.cc122 auto& bias_array = model->GetOrCreateArray(merged_biases); in Run() local
123 bias_array.data_type = ArrayDataType::kFloat; in Run()
124 bias_array.copy_shape(Shape({weights_dim1})); in Run()
125 auto& bias_buffer = bias_array.GetMutableBuffer<ArrayDataType::kFloat>(); in Run()
Dpropagate_fixed_sizes.cc1033 const auto& bias_array = in ProcessLstmCellOperator() local
1036 if (!bias_array.has_shape()) { in ProcessLstmCellOperator()
1039 const auto& bias_shape = bias_array.shape(); in ProcessLstmCellOperator()
1162 const auto& bias_array = model->GetArray(op->inputs[3]); in ProcessUnidirectionalSequenceRnnOperator() local
1164 if (!bias_array.has_shape()) { in ProcessUnidirectionalSequenceRnnOperator()
1168 const auto& bias_shape = bias_array.shape(); in ProcessUnidirectionalSequenceRnnOperator()
1769 const auto& bias_array = model->GetArray(op->inputs[3]); in ProcessSvdfOperator() local
1770 if (!bias_array.has_shape()) return; in ProcessSvdfOperator()
/external/tensorflow/tensorflow/lite/toco/graph_transformations/tests/
Dfuse_binary_into_preceding_affine_test.cc112 auto& bias_array = model_->GetArray(op->inputs[3]); in TEST_F() local
113 EXPECT_THAT(bias_array.GetBuffer<toco::ArrayDataType::kFloat>().data, in TEST_F()
Dfuse_binary_into_following_affine_test.cc108 auto& bias_array = model_->GetArray(op->inputs[2]); in TEST_F() local
109 EXPECT_THAT(bias_array.GetBuffer<toco::ArrayDataType::kFloat>().data, in TEST_F()
/external/tensorflow/tensorflow/compiler/mlir/lite/utils/
Dlstm_utils.cc704 Operation* bias_array; in ConvertKerasLSTMLayer() local
706 &bias_array))) in ConvertKerasLSTMLayer()
735 /*input_gate_bias=*/bias_array->getResult(0), in ConvertKerasLSTMLayer()
736 /*forget_gate_bias=*/bias_array->getResult(1), in ConvertKerasLSTMLayer()
737 /*cell_bias=*/bias_array->getResult(2), in ConvertKerasLSTMLayer()
738 /*output_gate_bias=*/bias_array->getResult(3), in ConvertKerasLSTMLayer()
/external/tensorflow/tensorflow/lite/toco/
Dexport_tensorflow.cc441 const auto& bias_array = model.GetArray(bias_array_name); in ConvertConvOperator() local
443 Shape bias_shape_1d = bias_array.shape(); in ConvertConvOperator()
445 CHECK(bias_array.buffer->type == ArrayDataType::kFloat); in ConvertConvOperator()
447 bias_array.GetBuffer<ArrayDataType::kFloat>().data.data(); in ConvertConvOperator()
532 const auto& bias_array = model.GetArray(bias_name); in ConvertDepthwiseConvOperator() local
534 Shape bias_shape_1d = bias_array.shape(); in ConvertDepthwiseConvOperator()
536 CHECK(bias_array.buffer->type == ArrayDataType::kFloat); in ConvertDepthwiseConvOperator()
538 bias_array.GetBuffer<ArrayDataType::kFloat>().data.data(); in ConvertDepthwiseConvOperator()
665 const auto& bias_array = model.GetArray(src_op.inputs[2]); in ConvertFullyConnectedOperator() local
667 Shape bias_shape_1d = bias_array.shape(); in ConvertFullyConnectedOperator()
[all …]