Home
last modified time | relevance | path

Searched refs:sp_ids (Results 1 – 17 of 17) sorted by relevance

/external/tensorflow/tensorflow/python/ops/
Dembedding_ops.py372 sp_ids, argument
461 if not isinstance(sp_ids, sparse_tensor.SparseTensor):
467 sp_ids.values.get_shape().assert_is_compatible_with(
469 sp_ids.indices.get_shape().assert_is_compatible_with(
471 sp_ids.dense_shape.get_shape().assert_is_compatible_with(
477 params + [sp_ids]) as name:
478 segment_ids = sp_ids.indices[:, 0]
482 ids = sp_ids.values
547 sp_ids, argument
623 params, sp_ids, sp_weights, "div", name, combiner, max_norm)
Dsparse_ops.py1517 def sparse_merge(sp_ids, sp_values, vocab_size, name=None, argument
1610 if isinstance(sp_ids, sparse_tensor.SparseTensorValue) or isinstance(
1611 sp_ids, sparse_tensor.SparseTensor):
1612 sp_ids = [sp_ids]
1619 if not isinstance(sp_ids, collections.Iterable):
1621 "Found %s" % type(sp_ids))
1630 if len(sp_ids) != len(vocab_size):
1633 with ops.name_scope(name, "SparseMerge", [sp_ids, sp_values]):
1634 sp_ids = [_convert_to_sparse_tensor(sp_ids_dim) for sp_ids_dim in sp_ids]
1637 for sp_ids_dim in sp_ids:
[all …]
Dparsing_ops.py332 sp_ids = tensor_dict[feature.index_key]
334 sp_ids = [tensor_dict[index_key] for index_key in feature.index_key]
337 sp_ids,
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dembedding_ops.py586 sp_ids, argument
643 if not isinstance(sp_ids, sparse_tensor.SparseTensor):
649 sp_ids.values.get_shape().assert_is_compatible_with(
651 sp_ids.indices.get_shape().assert_is_compatible_with(
653 sp_ids.dense_shape.get_shape().assert_is_compatible_with(
659 params + [sp_ids]) as name:
660 segment_ids = sp_ids.indices[:, 0]
664 ids = sp_ids.values
Dembedding_ops_test.py688 sp_ids = sparse_tensor_lib.SparseTensor(
697 return sp_ids, sp_weights, ids, weights, vals_per_batch_entry
713 sp_ids, sp_weights, ids, weights, vals_per_batch_entry = (
731 sp_ids,
758 sp_ids, sp_weights, _, _, _ = (self._RandomIdsAndWeights(
770 sp_ids,
784 sp_ids = sparse_tensor_lib.SparseTensor(
795 x, sp_ids, sp_weights, combiner="mean")
Dfeature_column.py994 weighted_column = sparse_ops.sparse_merge(sp_ids=sparse_id_column,
/external/tensorflow/tensorflow/contrib/lookup/
Dlookup_ops_test.py1371 sp_ids = table.lookup(sp_features)
1373 self.assertAllEqual([5], sp_ids.values._shape_as_list())
1376 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
1400 sp_ids = table.lookup(sp_features)
1402 self.assertAllEqual([5], sp_ids.values._shape_as_list())
1405 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
1429 sp_ids = table.lookup(sp_features)
1431 self.assertAllEqual([5], sp_ids.values._shape_as_list())
1434 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
/external/tensorflow/tensorflow/python/kernel_tests/
Dlookup_ops_test.py869 sp_ids = table.lookup(sp_features)
871 self.assertAllEqual([5], sp_ids.values._shape_as_list())
874 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
895 sp_ids = table.lookup(sp_features)
897 self.assertAllEqual([5], sp_ids.values._shape_as_list())
900 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
918 sp_ids = table.lookup(sp_features)
920 self.assertAllEqual([5], sp_ids.values._shape_as_list())
923 [sp_ids.indices, sp_ids.values, sp_ids.dense_shape])
2411 sp_ids = table.lookup(sp_features)
[all …]
Dembedding_ops_test.py666 sp_ids = sparse_tensor.SparseTensor(
675 return sp_ids, sp_weights, ids, weights, vals_per_batch_entry
692 sp_ids, sp_weights, ids, weights, vals_per_batch_entry = (
710 sp_ids,
749 sp_ids, sp_weights, _, _, _ = (self._RandomIdsAndWeights(
761 sp_ids,
776 sp_ids = sparse_tensor.SparseTensor(
787 x, sp_ids, sp_weights, combiner="mean")
Dsparse_ops_test.py223 sp_ids=ids, sp_values=values, vocab_size=5)
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_EnqueueTPUEmbeddingSparseTensorBatch.pbtxt9 belong. It corresponds to sp_ids.indices[:,0] in embedding_lookup_sparse().
16 It corresponds to sp_ids.values in embedding_lookup_sparse().
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.sparse.pbtxt53 …argspec: "args=[\'sp_ids\', \'sp_values\', \'vocab_size\', \'name\', \'already_sorted\'], varargs=…
Dtensorflow.nn.pbtxt193 …argspec: "args=[\'params\', \'sp_ids\', \'sp_weights\', \'partition_strategy\', \'name\', \'combin…
Dtensorflow.pbtxt2089 …argspec: "args=[\'sp_ids\', \'sp_values\', \'vocab_size\', \'name\', \'already_sorted\'], varargs=…
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.nn.pbtxt153 …argspec: "args=[\'params\', \'sp_ids\', \'sp_weights\', \'combiner\', \'max_norm\', \'name\'], var…
/external/tensorflow/tensorflow/python/feature_column/
Dfeature_column.py3023 sp_ids=id_tensor,
Dfeature_column_v2.py4189 sp_ids=id_tensor,