/external/tensorflow/tensorflow/compiler/tests/ |
D | lstm_test.py | 64 def _NextC(self, inputs, weight, m_prev, c_prev): argument 67 return _Clip(_Clip(_Sigmoid(x) * c_prev) + _Clip(_Sigmoid(x) * np.tanh(x))) 69 def _NextM(self, inputs, weight, m_prev, c_prev): argument 72 return _Clip(_Sigmoid(x) * self._NextC(inputs, weight, m_prev, c_prev)) 82 c_prev = constant_op.constant([[c_prev_scalar]] * self._batch_size) 86 m, c = lstm.LSTMCell(weights, m_prev, c_prev, x, pad) 111 for c_prev in [0., 1.]: 113 init_ops.ones_initializer(), m_prev, c_prev, 115 self.assertAllClose(m, self._NextM(self._inputs, 1., m_prev, c_prev)) 116 self.assertAllClose(c, self._NextC(self._inputs, 1., m_prev, c_prev)) [all …]
|
D | lstm.py | 47 def LSTMCell(weights, m_prev, c_prev, x, pad): argument 75 c_next = Clip(Clip(forget_gate * c_prev) + Clip(in_gate * in_value)) 79 c_next = c_prev * pad + c_next * (1.0 - pad)
|
/external/aac/libArithCoding/src/ |
D | ac_arith_coder.cpp | 613 UCHAR *RESTRICT c_prev, in decode2() argument 634 state_inc = c_prev[0] << 12; in decode2() 639 s = s + (c_prev[i + 1] << 8); in decode2() 703 c_prev[i] = (UCHAR)c_0; in decode2() 728 FDKmemset(&c_prev[i], 1, sizeof(c_prev[0]) * (nt - i)); in decode2() 753 FDKmemclear(pArcoData->c_prev, in CArco_DecodeArithData() 754 sizeof(pArcoData->c_prev[0]) * ((lg_max / 2) + 4)); in CArco_DecodeArithData() 765 copyTableAmrwbArith2(pArcoData->c_prev, pArcoData->m_numberLinesPrev >> 1, in CArco_DecodeArithData() 774 decode2(hBs, pArcoData->c_prev + 2, mdctSpectrum, lg >> 1, lg_max >> 1); in CArco_DecodeArithData() 776 FDKmemset(&pArcoData->c_prev[2], 1, in CArco_DecodeArithData() [all …]
|
/external/tensorflow/tensorflow/contrib/grid_rnn/python/ops/ |
D | grid_rnn_cell.py | 181 c_prev, m_prev, cell_output_size = self._extract_states(state) 188 self._project_input(inputs, c_prev, m_prev, cell_output_size > 0) 192 _propagate(conf.non_priority, conf, self._cells, c_prev, m_prev, 195 c_prev, m_prev, new_output, new_state, False) 238 c_prev = [None] * conf.num_dims 254 c_prev[recurrent_dim], m_prev[recurrent_dim] = recurrent_state 262 c_prev[recurrent_dim] = array_ops.slice(state, [0, start_idx], 269 return c_prev, m_prev, cell_output_size 271 def _project_input(self, inputs, c_prev, m_prev, with_c): argument 309 c_prev[j] = math_ops.matmul(input_splits[i], input_project_c) [all …]
|
/external/libxaac/decoder/ |
D | ixheaacd_arith_dec.c | 1632 WORD8 *c_prev, WORD8 *c, in ixheaacd_arith_map_context() argument 1642 c_prev[i] = 0; in ixheaacd_arith_map_context() 1648 c_prev_tmp[i] = c_prev[i]; in ixheaacd_arith_map_context() 1655 c_prev[2 + i] = c_prev_tmp[2 + k]; in ixheaacd_arith_map_context() 1658 c_prev[(pres_n / 2) + 2] = c_prev_tmp[(prev_n / 2) + 2]; in ixheaacd_arith_map_context() 1668 static WORD32 ixheaacd_arith_get_context(WORD8 *c_prev, WORD8 *c_pres, in ixheaacd_arith_get_context() argument 1670 WORD32 tmp = (WORD32)c_prev[1] << 12; in ixheaacd_arith_get_context() 1805 WORD8 *c_prev, WORD8 *c_pres, WORD32 n, in ixheaacd_arth_decoding_level2() argument 1820 c_prev[i] = c_pres[i]; in ixheaacd_arth_decoding_level2() 1826 c = (WORD32)c_prev[0] << 12; in ixheaacd_arth_decoding_level2() [all …]
|
D | ixheaacd_main.h | 127 WORD8 c_prev[MAX_NUM_CHANNELS][1024 / 2 + 4]; member
|
/external/tensorflow/tensorflow/contrib/model_pruning/python/layers/ |
D | rnn_cells.py | 302 (c_prev, m_prev) = state 304 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 321 sigmoid(f + self._forget_bias + self._w_f_diag * c_prev) * c_prev + 322 sigmoid(i + self._w_i_diag * c_prev) * self._activation(j)) 325 sigmoid(f + self._forget_bias) * c_prev +
|
/external/tensorflow/tensorflow/lite/experimental/examples/lstm/ |
D | rnn_cell.py | 419 (c_prev, m_prev) = state 421 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 426 c_prev = self._tflite_wrapper.add_input( 427 c_prev, 479 sigmoid(f + self._w_f_diag * c_prev) * c_prev + 480 sigmoid(i + self._w_i_diag * c_prev) * self._activation(j)) 482 c = (sigmoid(f) * c_prev + sigmoid(i) * self._activation(j))
|
/external/aac/libArithCoding/include/ |
D | ac_arith_coder.h | 116 UCHAR c_prev[(1024 / 2) + 4]; /* 2-tuple context of previous frame, 4 bit */ member
|
/external/tensorflow/tensorflow/contrib/rnn/python/ops/ |
D | rnn_cell.py | 249 (c_prev, m_prev) = state 251 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 294 f_act = sigmoid(f + self._forget_bias + w_f_diag * c_prev) 297 c = (f_act * c_prev + (1 - f_act) * self._activation(j)) 438 c_prev = array_ops.slice(state, [0, 2 * fq * self._num_units], 450 sigmoid(f + self._forget_bias + w_f_diag * c_prev) * c_prev + 451 sigmoid(i + w_i_diag * c_prev) * tanh(j)) 453 c = (sigmoid(f + self._forget_bias) * c_prev + sigmoid(i) * tanh(j)) 1571 (c_prev, m_prev) = state 1603 l2_0 = tanh(l2_0 + c_prev) [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | rnn_cell_impl.py | 1008 (c_prev, m_prev) = state 1010 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 1026 c = (sigmoid(f + self._forget_bias + self._w_f_diag * c_prev) * c_prev + 1027 sigmoid(i + self._w_i_diag * c_prev) * self._activation(j)) 1029 c = (sigmoid(f + self._forget_bias) * c_prev + sigmoid(i) *
|
/external/iproute2/lib/ |
D | bpf.c | 224 char *tmp_string, *pos, c_prev = ' '; in bpf_parse_string() local 243 if (c_prev != ',') in bpf_parse_string() 245 c_prev = ','; in bpf_parse_string() 249 if (c_prev != ' ') in bpf_parse_string() 251 c_prev = ' '; in bpf_parse_string() 255 c_prev = c; in bpf_parse_string()
|