Home
last modified time | relevance | path

Searched refs:hidden_size (Results 1 – 16 of 16) sorted by relevance

/external/tensorflow/tensorflow/python/grappler/
Dhierarchical_controller.py118 hidden_size=512,
195 self.embedding_size + self.hparams.hidden_size / 2,
196 2 * self.hparams.hidden_size
199 self.embedding_size + self.hparams.hidden_size / 2,
200 2 * self.hparams.hidden_size
203 "device_embeddings", [self.num_devices, self.hparams.hidden_size])
206 [2 * self.hparams.hidden_size, 4 * self.hparams.hidden_size])
208 "device_softmax", [2 * self.hparams.hidden_size, self.num_devices])
210 [1, self.hparams.hidden_size])
224 "attn_w_1", [self.hparams.hidden_size, self.hparams.hidden_size])
[all …]
Dgraph_placer_test.py41 hidden_size=256, argument
50 a = input_size if layer_id == 0 else hidden_size
51 b = hidden_size if layer_id < num_layers - 1 else num_classes
/external/tensorflow/tensorflow/contrib/mpi_collectives/
Dmpi_allreduce_test.py60 hidden_size = batch_size
64 inputs = tf.placeholder(tf.float32, shape=(batch_size, hidden_size),
72 shape=(hidden_size, out_size),
91 my_reducer = tf.Variable(initial_value=np.ones((hidden_size, out_size)),
112 input_feed = np.ones((batch_size, hidden_size), dtype=np.float32)
129 my_correct = np.zeros((batch_size, hidden_size), dtype=np.float32)
132 our_correct = np.zeros((batch_size, hidden_size), dtype=np.float32)
/external/tensorflow/tensorflow/contrib/autograph/examples/benchmarks/
Dcartpole_benchmark.py74 def __init__(self, hidden_size): argument
77 hidden_size, activation=tf.nn.elu)
275 def __init__(self, hidden_size): argument
278 hidden_size, activation=tf.nn.elu)
424 network = GraphPolicyNetwork(hidden_size=5)
441 network = EagerPolicyNetwork(hidden_size=5)
468 network = GraphPolicyNetwork(hidden_size=model_size)
482 network = EagerPolicyNetwork(hidden_size=model_size)
/external/libtextclassifier/lang_id/common/
Dembedding-network-params.h116 CheckIndex(i, hidden_size(), "hidden layer"); in GetHiddenLayerMatrix()
224 virtual int hidden_size() const = 0;
Dembedding-network.cc303 SAFTM_CHECK_EQ(model_->hidden_size(), model_->hidden_bias_size()); in EmbeddingNetwork()
304 for (int i = 0; i < model_->hidden_size(); ++i) { in EmbeddingNetwork()
/external/libtextclassifier/lang_id/common/flatbuffers/
Dembedding-network-params-from-flatbuffer.h87 int hidden_size() const override { in hidden_size() function
112 int hidden_bias_size() const override { return hidden_size(); } in hidden_bias_size()
Dembedding-network-params-from-flatbuffer.cc219 for (int i = 0; i < hidden_size(); ++i) { in ValidityChecking()
/external/tensorflow/tensorflow/contrib/eager/python/examples/nmt_with_attention/
Dnmt_with_attention.ipynb355 …ut of shape *(batch_size, max_length, hidden_size)* and the encoder hidden state of shape *(batch_…
457 " # enc_output shape == (batch_size, max_length, hidden_size)\n",
471 " # context_vector shape after sum == (batch_size, hidden_size)\n",
478 " # x shape after concatenation == (batch_size, 1, embedding_dim + hidden_size)\n",
484 " # output shape == (batch_size * 1, hidden_size)\n",
/external/tensorflow/tensorflow/stream_executor/cuda/
Dcuda_dnn.cc1005 int hidden_size, int input_size, int batch_size, in CudnnRnnDescriptor() argument
1016 hidden_size_(hidden_size), in CudnnRnnDescriptor()
1033 const CudnnHandle& cudnn, int num_layers, int hidden_size, int input_size, in Create() argument
1048 cudnn.handle(), /*rnnDesc=*/rnn_desc.get(), /*hiddenSize=*/hidden_size, in Create()
1101 num_layers, hidden_size, input_size, batch_size, in Create()
1109 int hidden_size() const { return hidden_size_; } in hidden_size() function in stream_executor::gpu::CudnnRnnDescriptor
1405 int hidden_size = 0; member
1430 model_dims.hidden_size = rnn_desc.hidden_size(); in ExtractAndCheckRnnForward()
1439 input_h_desc.data_size() == model_dims.hidden_size)) { in ExtractAndCheckRnnForward()
1450 model_dims.hidden_size * model_dims.dir_count)) { in ExtractAndCheckRnnForward()
[all …]
Dcuda_dnn.h51 int num_layers, int hidden_size, int input_size, int batch_size,
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_dnn.cc1682 int hidden_size, int input_size, in MIOpenRnnDescriptor() argument
1690 hidden_size_(hidden_size), in MIOpenRnnDescriptor()
1700 rnn_desc_ /*rnnDesc*/, hidden_size /*hiddenSize*/, in MIOpenRnnDescriptor()
1725 int hidden_size() const { return hidden_size_; } in hidden_size() function in stream_executor::gpu::MIOpenRnnDescriptor
1885 int hidden_size = 0; member
1909 model_dims->hidden_size = rnn_desc.hidden_size(); in ExtractAndCheckRnnForward()
1918 input_h_desc.data_size() == model_dims->hidden_size)) { in ExtractAndCheckRnnForward()
1931 model_dims->hidden_size * model_dims->dir_count)) { in ExtractAndCheckRnnForward()
2276 int num_layers, int hidden_size, int input_size, int batch_size, in createRnnDescriptor() argument
2285 miopen.handle(), num_layers, hidden_size, input_size, in createRnnDescriptor()
Drocm_dnn.h49 int num_layers, int hidden_size, int input_size, int batch_size,
/external/tensorflow/tensorflow/stream_executor/
Dstream_executor_pimpl.cc382 int num_layers, int hidden_size, int input_size, int batch_size, in createRnnDescriptor() argument
393 num_layers, hidden_size, input_size, batch_size, input_mode, in createRnnDescriptor()
Dstream_executor_pimpl.h408 int num_layers, int hidden_size, int input_size, int batch_size,
Ddnn.h2042 createRnnDescriptor(int num_layers, int hidden_size, int input_size,