Home
last modified time | relevance | path

Searched refs:dense_tensor (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/contrib/layers/python/ops/
Dsparse_ops.py55 def dense_to_sparse_tensor(dense_tensor, ignore_value=None): argument
71 dense_tensor = ops.convert_to_tensor(dense_tensor)
72 ignore_value = _ignore_value_tensor(dense_tensor.dtype, ignore_value)
74 math_ops.not_equal(dense_tensor, ignore_value), name="indices")
77 values=array_ops.gather_nd(dense_tensor, indices, name="values"),
79 dense_tensor, out_type=dtypes.int64, name="dense_shape"))
/external/tensorflow/tensorflow/contrib/feature_column/python/feature_column/
Dsequence_feature_column.py118 dense_tensor, sequence_length = column._get_sequence_dense_tensor(
124 shape = array_ops.shape(dense_tensor)
127 array_ops.reshape(dense_tensor, shape=target_shape))
496 dense_tensor = sparse_ops.sparse_tensor_to_dense(
500 [array_ops.shape(dense_tensor)[:1], [-1], self._variable_shape],
502 dense_tensor = array_ops.reshape(dense_tensor, shape=dense_shape)
514 dense_tensor=dense_tensor, sequence_length=seq_length)
Dsequence_feature_column_test.py1349 dense_tensor, _ = numeric_column._get_sequence_dense_tensor(
1353 self.assertAllEqual(expected, dense_tensor.eval(session=sess))
1383 dense_tensor, _ = numeric_column._get_sequence_dense_tensor(
1388 expected_dense_tensor, dense_tensor.eval(session=sess))
1421 dense_tensor, _ = numeric_column._get_sequence_dense_tensor(
1426 expected_dense_tensor, dense_tensor.eval(session=sess))
/external/tensorflow/tensorflow/python/feature_column/
Dsequence_feature_column.py137 dense_tensor, sequence_length = column.get_sequence_dense_tensor(
140 output_tensors.append(self._process_dense_tensor(column, dense_tensor))
552 dense_tensor = sparse_ops.sparse_tensor_to_dense(
556 [array_ops.shape(dense_tensor)[:1], [-1], self.variable_shape],
558 dense_tensor = array_ops.reshape(dense_tensor, shape=dense_shape)
572 dense_tensor=dense_tensor, sequence_length=seq_length)
Dsequence_feature_column_test.py707 dense_tensor, lengths = column.get_sequence_dense_tensor(
709 return dense_tensor, lengths, state_manager
1388 dense_tensor, _ = _get_sequence_dense_tensor(
1390 self.assertAllEqual(expected, self.evaluate(dense_tensor))
1420 dense_tensor, _ = _get_sequence_dense_tensor(
1424 expected_dense_tensor, self.evaluate(dense_tensor))
1457 dense_tensor, _ = _get_sequence_dense_tensor(
1461 expected_dense_tensor, self.evaluate(dense_tensor))
Dfeature_column_v2.py3157 dense_tensor = self._get_dense_tensor_internal(sparse_tensors,
3162 dense_tensor=dense_tensor, sequence_length=sequence_length)
3181 dense_tensor = self._old_get_dense_tensor_internal(
3188 dense_tensor=dense_tensor, sequence_length=sequence_length)
3365 dense_tensor = self._get_dense_tensor_internal(transformation_cache,
3372 dense_tensor=dense_tensor, sequence_length=sequence_length)
4327 dense_tensor = transformation_cache.get(self, state_manager)
4333 dense_tensor=dense_tensor, sequence_length=sequence_length)
4357 dense_tensor = inputs.get(self)
4362 dense_tensor=dense_tensor, sequence_length=sequence_length)
Dfeature_column.py2480 dense_tensor = self._get_dense_tensor_internal( # pylint: disable=protected-access
2489 dense_tensor=dense_tensor, sequence_length=sequence_length)
2623 dense_tensor = self._get_dense_tensor_internal( # pylint: disable=protected-access
2631 dense_tensor=dense_tensor, sequence_length=sequence_length)
3110 dense_tensor = inputs.get(self)
3115 dense_tensor=dense_tensor, sequence_length=sequence_length)
/external/tensorflow/tensorflow/contrib/boosted_trees/lib/testutil/
Dbatch_features_testutil.cc39 auto dense_tensor = Tensor(tensorflow::DT_FLOAT, {batch_size, 1}); in RandomlyInitializeBatchFeatures() local
40 tensorflow::test::FillValues<float>(&dense_tensor, values); in RandomlyInitializeBatchFeatures()
41 dense_float_features_list.push_back(dense_tensor); in RandomlyInitializeBatchFeatures()
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/
Dsdca_optimizer.py122 def _dense_tensor_to_sparse_feature_column(dense_tensor): argument
126 math_ops.not_equal(dense_tensor,
127 math_ops.cast(ignore_value, dense_tensor.dtype)))
128 sparse_values = array_ops.gather_nd(dense_tensor, sparse_indices)
/external/tensorflow/tensorflow/python/ops/
Dclip_ops_test.py56 dense_tensor = ops.convert_to_tensor(indixed_slices)
57 dense_clipped = clip_ops.clip_by_norm(dense_tensor, max_norm, axes)
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/kernel_tests/
Dsdca_ops_test.py181 dense_tensor = ops.convert_to_tensor(dense_feature, dtype=dtypes.float32)
183 math_ops.less_equal(array_ops.rank(dense_tensor), 2),
187 dense_tensor = array_ops.reshape(
188 dense_tensor, [dense_tensor.get_shape().as_list()[0], -1])
189 dense_tensors.append(dense_tensor)
194 [dense_tensor.get_shape().as_list()[1]], dtype=dtypes.float32)))
/external/tensorflow/tensorflow/contrib/layers/python/layers/
Dfeature_column.py1002 dense_tensor = sparse_ops.sparse_tensor_to_dense(weighted_column)
1003 batch_shape = array_ops.shape(dense_tensor)[:-1]
1006 dense_tensor = array_ops.reshape(dense_tensor, dense_tensor_shape)
1007 return dense_tensor