diff options
author | Rachel Lim <rachelim@google.com> | 2018-08-28 11:07:35 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-28 11:12:51 -0700 |
commit | cf879ef5dddee8d1b5081afe5bd8f49f15245d08 (patch) | |
tree | 7da03b5946bda44edd6b2220ea0aeb2a4f32e9a4 /tensorflow/core/api_def/python_api | |
parent | 8f99e5ad11040a6f0b5c12648e98bdbfe4dc3970 (diff) |
Adds a tf.ensure_shape function as a substitute for tensor.set_shape, which validates the true shape of the tensor at runtime.
PiperOrigin-RevId: 210570878
Diffstat (limited to 'tensorflow/core/api_def/python_api')
-rw-r--r-- | tensorflow/core/api_def/python_api/api_def_EnsureShape.pbtxt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/core/api_def/python_api/api_def_EnsureShape.pbtxt b/tensorflow/core/api_def/python_api/api_def_EnsureShape.pbtxt new file mode 100644 index 0000000000..4414d973ac --- /dev/null +++ b/tensorflow/core/api_def/python_api/api_def_EnsureShape.pbtxt @@ -0,0 +1,4 @@ +op { + graph_op_name: "EnsureShape" + visibility: HIDDEN +} |