diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-11-11 17:18:07 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-11-11 17:26:17 -0800 |
commit | 3c08b43159e4bd1e587170a707f44fbea77239d1 (patch) | |
tree | 5204ab345833e20dc2eaf24a6ddadba1a01f69cb | |
parent | 341da02072ee1c1093a5dca6ad45a1488306193d (diff) |
Docstring example and formatting updates
Change: 138936680
-rw-r--r-- | tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py b/tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py index 693581dc18..a120bc6cc3 100644 --- a/tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py +++ b/tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py @@ -35,6 +35,17 @@ class TensorSignature(collections.namedtuple( Useful to check compatibility of tensors. + Example: + + ```python + examples = tf.placeholder(...) + inputs = {'a': var_a, 'b': var_b} + signatures = tensor_signature.create_signatures(inputs) + result = tensor_signature.create_example_parser_from_signatures( + signatures, examples) + self.assertTrue(tensor_signature.tensors_compatible(result, signatures)) + ``` + Attributes: dtype: `DType` object. shape: `TensorShape` object. |