/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 | 612 static void decode2(HANDLE_FDK_BITSTREAM bbuf, UCHAR *RESTRICT c_prev, in decode2() argument 631 state_inc = c_prev[0] << 12; in decode2() 636 s = s + (c_prev[i + 1] << 8); in decode2() 698 c_prev[i] = (UCHAR)c_0; in decode2() 723 FDKmemset(&c_prev[i], 1, sizeof(c_prev[0]) * (nt - i)); in decode2() 746 FDKmemclear(pArcoData->c_prev, in CArco_DecodeArithData() 747 sizeof(pArcoData->c_prev[0]) * ((lg_max / 2) + 4)); in CArco_DecodeArithData() 758 copyTableAmrwbArith2(pArcoData->c_prev, pArcoData->m_numberLinesPrev >> 1, in CArco_DecodeArithData() 766 decode2(hBs, pArcoData->c_prev + 2, mdctSpectrum, lg >> 1, lg_max >> 1); in CArco_DecodeArithData() 768 FDKmemset(&pArcoData->c_prev[2], 1, in CArco_DecodeArithData() [all …]
|
/external/tensorflow/tensorflow/contrib/grid_rnn/python/ops/ |
D | grid_rnn_cell.py | 180 c_prev, m_prev, cell_output_size = self._extract_states(state) 187 self._project_input(inputs, c_prev, m_prev, cell_output_size > 0) 191 _propagate(conf.non_priority, conf, self._cells, c_prev, m_prev, 194 c_prev, m_prev, new_output, new_state, False) 237 c_prev = [None] * conf.num_dims 253 c_prev[recurrent_dim], m_prev[recurrent_dim] = recurrent_state 261 c_prev[recurrent_dim] = array_ops.slice(state, [0, start_idx], 268 return c_prev, m_prev, cell_output_size 270 def _project_input(self, inputs, c_prev, m_prev, with_c): argument 306 c_prev[j] = math_ops.matmul(input_splits[i], input_project_c) [all …]
|
/external/libxaac/decoder/ |
D | ixheaacd_arith_dec.c | 1631 WORD8 *c_prev, WORD8 *c, in ixheaacd_arith_map_context() argument 1641 c_prev[i] = 0; in ixheaacd_arith_map_context() 1647 c_prev_tmp[i] = c_prev[i]; in ixheaacd_arith_map_context() 1654 c_prev[2 + i] = c_prev_tmp[2 + k]; in ixheaacd_arith_map_context() 1657 c_prev[(pres_n / 2) + 2] = c_prev_tmp[(prev_n / 2) + 2]; in ixheaacd_arith_map_context() 1677 static WORD32 ixheaacd_arith_get_context(WORD8 *c_prev, WORD8 *c_pres, in ixheaacd_arith_get_context() argument 1679 WORD32 tmp = (WORD32)c_prev[1] << 12; in ixheaacd_arith_get_context() 1795 WORD8 *c_prev, WORD8 *c_pres, WORD32 n, in ixheaacd_arth_decoding_level2() argument 1810 c_prev[i] = c_pres[i]; in ixheaacd_arth_decoding_level2() 1816 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/contrib/rnn/python/ops/ |
D | rnn_cell.py | 244 (c_prev, m_prev) = state 246 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 287 f_act = sigmoid(f + self._forget_bias + w_f_diag * c_prev) 290 c = (f_act * c_prev + (1 - f_act) * self._activation(j)) 431 c_prev = array_ops.slice(state, [0, 2 * fq * self._num_units], 443 sigmoid(f + self._forget_bias + w_f_diag * c_prev) * c_prev + 444 sigmoid(i + w_i_diag * c_prev) * tanh(j)) 446 c = (sigmoid(f + self._forget_bias) * c_prev + sigmoid(i) * tanh(j)) 1533 (c_prev, m_prev) = state 1581 l2_0 = tanh(l2_0 + c_prev) [all …]
|
/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/python/ops/ |
D | rnn_cell_impl.py | 779 (c_prev, m_prev) = state 781 c_prev = array_ops.slice(state, [0, 0], [-1, self._num_units]) 797 c = (sigmoid(f + self._forget_bias + self._w_f_diag * c_prev) * c_prev + 798 sigmoid(i + self._w_i_diag * c_prev) * self._activation(j)) 800 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()
|