Home
last modified time | relevance | path

Searched refs:embedding_size (Results 1 – 25 of 28) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dscatter_op_test.cc244 static void BM_ScatterHelper(int iters, int embedding_size, const char* op) { in BM_ScatterHelper() argument
246 const int kRows = 10000000 / embedding_size; in BM_ScatterHelper()
249 for (int i = 0; i < kRows * embedding_size; i++) { in BM_ScatterHelper()
259 for (int j = 0; j < embedding_size; j++) { in BM_ScatterHelper()
266 bm.AddInputFromArray<float>(TensorShape({kRows, embedding_size}), values); in BM_ScatterHelper()
268 bm.AddInputFromArray<float>(TensorShape({kNumUpdates, embedding_size}), in BM_ScatterHelper()
270 testing::ItemsProcessed((static_cast<int64>(kNumUpdates) * embedding_size) * in BM_ScatterHelper()
279 static void BM_ScatterUpdateInt32(int iters, int embedding_size) { in BM_ScatterUpdateInt32() argument
280 BM_ScatterHelper<int32>(iters, embedding_size, "ScatterUpdate"); in BM_ScatterUpdateInt32()
282 static void BM_ScatterUpdateInt64(int iters, int embedding_size) { in BM_ScatterUpdateInt64() argument
[all …]
Dscatter_nd_op_test.cc254 static void BM_ScatterNdHelper(int iters, int embedding_size, const char* op) { in BM_ScatterNdHelper() argument
256 const int kRows = 10000000 / embedding_size; in BM_ScatterNdHelper()
259 for (int i = 0; i < kRows * embedding_size; i++) { in BM_ScatterNdHelper()
269 for (int j = 0; j < embedding_size; j++) { in BM_ScatterNdHelper()
276 bm.AddInputFromArray<float>(TensorShape({kRows, embedding_size}), values); in BM_ScatterNdHelper()
278 bm.AddInputFromArray<float>(TensorShape({kNumUpdates, embedding_size}), in BM_ScatterNdHelper()
280 testing::ItemsProcessed((static_cast<int64>(kNumUpdates) * embedding_size) * in BM_ScatterNdHelper()
289 static void BM_ScatterNdUpdateInt32(int iters, int embedding_size) { in BM_ScatterNdUpdateInt32() argument
290 BM_ScatterNdHelper<int32>(iters, embedding_size, "ScatterNdUpdate"); in BM_ScatterNdUpdateInt32()
292 static void BM_ScatterNdUpdateInt64(int iters, int embedding_size) { in BM_ScatterNdUpdateInt64() argument
[all …]
/external/tensorflow/tensorflow/lite/kernels/
Dembedding_lookup_sparse.cc118 float current_squares_weight, int embedding_size, in FinalizeAggregation() argument
132 for (int k = 0; k < embedding_size; k++) { in FinalizeAggregation()
163 int embedding_size = 1; in Eval() local
172 embedding_size *= dim; in Eval()
176 const int output_size = lookup_size * embedding_size; in Eval()
205 const int output_offset = output_bucket * embedding_size; in Eval()
211 current_squares_weight, embedding_size, in Eval()
223 const int example_embedding_offset = idx * embedding_size; in Eval()
227 for (int k = 0; k < embedding_size; k++) { in Eval()
235 current_squares_weight, embedding_size, in Eval()
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/ops/
Dseq2seq.py237 embedding_size, argument
291 [num_symbols, embedding_size])
306 embedding_size, argument
362 embedding_size=embedding_size)
375 embedding_size,
389 embedding_size,
414 embedding_size, argument
476 "embedding", [num_symbols, embedding_size], dtype=dtype)
716 embedding_size, argument
779 [num_symbols, embedding_size])
[all …]
/external/libtextclassifier/actions/
Dfeature-processor.cc76 return options_->embedding_size() + in GetTokenEmbeddingSize()
86 const int embedding_size = options_->embedding_size(); in AppendFeatures() local
87 output_features->resize(output_features->size() + embedding_size); in AppendFeatures()
93 /*dest=*/output_features_end - embedding_size, in AppendFeatures()
94 /*dest_size=*/embedding_size)) { in AppendFeatures()
Dfeature-processor_test.cc67 options.embedding_size = 4; in TEST_F()
86 options.embedding_size = 4; in TEST_F()
107 options.embedding_size = 4; in TEST_F()
Dactions_model.fbs84 // A (max tokens, embedding_size) float tensor specifying the embeddings of
120 embedding_size:int = -1;
/external/tensorflow/tensorflow/contrib/legacy_seq2seq/python/kernel_tests/
Dseq2seq_test.py115 dec_inp, enc_state, cell_fn(), num_symbols=4, embedding_size=2)
146 embedding_size=2)
165 embedding_size=2)
184 embedding_size=2,
203 embedding_size=2,
212 embedding_size=2,
221 embedding_size=2,
244 enc_inp, dec_inp, cell(), num_symbols=5, embedding_size=2)
263 embedding_size=2)
278 embedding_size=2,
[all …]
/external/tensorflow/tensorflow/contrib/gan/python/features/python/
Dconditioning_utils_impl.py79 def _one_hot_to_embedding(one_hot, embedding_size): argument
84 'embedding', [num_tokens, embedding_size])
94 def condition_tensor_from_onehot(tensor, one_hot_labels, embedding_size=256): argument
114 conditioning = _one_hot_to_embedding(one_hot_labels, embedding_size)
/external/libtextclassifier/annotator/
Dmodel-executor.cc46 const flatbuffers::Vector<uint8_t>* model_spec_buffer, int embedding_size, in FromBuffer() argument
78 embedding_size)) { in FromBuffer()
85 embedding_size, scales, embeddings, std::move(interpreter), in FromBuffer()
Dfeature-processor.cc837 const int embedding_size = GetOptions()->embedding_size(); in AppendTokenFeaturesWithCache() local
838 output_features->resize(output_features->size() + embedding_size); in AppendTokenFeaturesWithCache()
844 /*dest=*/output_features_end - embedding_size, in AppendTokenFeaturesWithCache()
845 /*dest_size=*/embedding_size)) { in AppendTokenFeaturesWithCache()
854 output_features_end - embedding_size, output_features_end); in AppendTokenFeaturesWithCache()
Dmodel-executor.h80 const flatbuffers::Vector<uint8_t>* model_spec_buffer, int embedding_size,
Dfeature-processor.h168 int EmbeddingSize() const { return options_->embedding_size(); } in EmbeddingSize()
Dfeature-processor_test.cc513 options.embedding_size = 4; in TEST_F()
621 options.embedding_size = 4; in TEST_F()
657 options.embedding_size = 4; in TEST_F()
Dannotator.cc343 (model_->selection_feature_options()->embedding_size() != in ValidateAndInitialize()
344 model_->classification_feature_options()->embedding_size() || in ValidateAndInitialize()
354 model_->classification_feature_options()->embedding_size(), in ValidateAndInitialize()
Dmodel.fbs509 embedding_size:int = -1;
/external/tensorflow/tensorflow/contrib/learn/python/learn/ops/
Dembeddings_ops.py73 def categorical_variable(tensor_in, n_classes, embedding_size, name): argument
91 [n_classes, embedding_size])
Dops_test.py66 cat_var_idx, n_classes=5, embedding_size=10, name="my_cat_var")
/external/tensorflow/tensorflow/contrib/rnn/python/ops/
Dcore_rnn_cell.py203 embedding_size, argument
224 if embedding_classes <= 0 or embedding_size <= 0:
226 "%d, %d." % (embedding_classes, embedding_size))
229 self._embedding_size = embedding_size
/external/tensorflow/tensorflow/examples/tutorials/word2vec/
Dword2vec_basic.py147 embedding_size = 128 # Dimension of the embedding vector.
175 tf.random_uniform([vocabulary_size, embedding_size], -1.0, 1.0))
181 tf.truncated_normal([vocabulary_size, embedding_size],
182 stddev=1.0 / math.sqrt(embedding_size)))
/external/tensorflow/tensorflow/python/keras/
Dcallbacks_v1.py269 embedding_size = np.prod(embedding_input.shape[1:])
271 (step, int(embedding_size)))
272 shape = (self.embeddings_data[0].shape[0], int(embedding_size))
/external/tensorflow/tensorflow/python/grappler/
Dhierarchical_controller.py177 self.embedding_size = self.group_emb_size
195 self.embedding_size + self.hparams.hidden_size / 2,
199 self.embedding_size + self.hparams.hidden_size / 2,
231 self.embedding_size + self.hparams.hidden_size,
749 embedding_size = array_ops.shape(x)[2]
754 signals[i], [self.hparams.num_children, embedding_size])
/external/tensorflow/tensorflow/python/keras/layers/
Dgru_v2_test.py511 embedding_size = 11
520 x = random_ops.random_uniform([1, time_steps, embedding_size])
/external/tensorflow/tensorflow/python/eager/
Dbackprop_test.py201 embedding_size = 512
204 random_init = random_ops.random_uniform([vocab_size, embedding_size])
/external/tensorflow/tensorflow/contrib/rnn/python/kernel_tests/
Drnn_cell_test.py277 rnn_cell_impl.GRUCell(2), embedding_classes=3, embedding_size=2)
297 embedding_size=2)

12