Home
last modified time | relevance | path

Searched refs:hidden_state (Results 1 – 6 of 6) sorted by relevance

/external/tensorflow/tensorflow/lite/kernels/
Dbasic_rnn.cc58 const TfLiteTensor* hidden_state = in Prepare() local
74 TF_LITE_ENSURE_EQ(context, NumDimensions(hidden_state), 2); in Prepare()
75 TF_LITE_ENSURE_EQ(context, hidden_state->dims->data[0], batch_size); in Prepare()
76 TF_LITE_ENSURE_EQ(context, hidden_state->dims->data[1], num_units); in Prepare()
110 hidden_state->dims)) { in Prepare()
112 TfLiteIntArrayCopy(hidden_state->dims); in Prepare()
137 TfLiteTensor* hidden_state, TfLiteTensor* output) { in EvalFloat() argument
145 float* hidden_state_ptr_batch = GetTensorData<float>(hidden_state); in EvalFloat()
168 TfLiteTensor* hidden_state, TfLiteTensor* output) { in EvalHybrid() argument
176 float* hidden_state_ptr_batch = GetTensorData<float>(hidden_state); in EvalHybrid()
[all …]
Dunidirectional_sequence_rnn.cc59 const TfLiteTensor* hidden_state = in Prepare() local
80 TF_LITE_ENSURE_EQ(context, NumDimensions(hidden_state), 2); in Prepare()
81 TF_LITE_ENSURE_EQ(context, hidden_state->dims->data[0], batch_size); in Prepare()
82 TF_LITE_ENSURE_EQ(context, hidden_state->dims->data[1], num_units); in Prepare()
117 hidden_state->dims)) { in Prepare()
119 TfLiteIntArrayCopy(hidden_state->dims); in Prepare()
144 TfLiteTensor* hidden_state, TfLiteTensor* output) { in EvalFloat() argument
162 float* hidden_state_ptr_batch = GetTensorData<float>(hidden_state); in EvalFloat()
181 GetTensorData<float>(hidden_state) + b * num_units; in EvalFloat()
205 TfLiteTensor* hidden_state, TfLiteTensor* output) { in EvalHybrid() argument
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dlegalize_ophint_func_op.cc103 Value hidden_state = call_op.getOperand(4); in BuildUnidirectionalSequenceRnnOp() local
116 hidden_state, builder->getBoolAttr(time_major), in BuildUnidirectionalSequenceRnnOp()
Dload_quantization_recipe.cc185 auto hidden_state = builder->create<MulOp>( in LoadForLSTMOp() local
188 loc, int8, hidden_state.output(), lstm.projection_weights(), in LoadForLSTMOp()
/external/tensorflow/tensorflow/python/keras/layers/
Dgru_v2_test.py609 hidden_state = array_ops.zeros([1, gru_unit_size], dtype=dtypes.float32)
610 _, state = gru(x, initial_state=hidden_state)
/external/tensorflow/tensorflow/compiler/mlir/lite/ir/
Dtfl_ops.td3247 TFL_StatefulTensor:$hidden_state,