diff options
author | 2017-12-08 13:48:39 -0800 | |
---|---|---|
committer | 2017-12-08 13:52:20 -0800 | |
commit | d94d6c45a56bc0871bb152a18818a1def3e17a7d (patch) | |
tree | 5192ba6de3d9cc7a815e19be208f217ee2beb694 /tensorflow/core/ops/nn_ops.cc | |
parent | 2f16f3afdcde16cf0de2f051c57b32cd61a12ec0 (diff) |
Add DataFormatVecPermute op.
PiperOrigin-RevId: 178421287
Diffstat (limited to 'tensorflow/core/ops/nn_ops.cc')
-rw-r--r-- | tensorflow/core/ops/nn_ops.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tensorflow/core/ops/nn_ops.cc b/tensorflow/core/ops/nn_ops.cc index f58425db0a..8c31be0c0d 100644 --- a/tensorflow/core/ops/nn_ops.cc +++ b/tensorflow/core/ops/nn_ops.cc @@ -768,6 +768,23 @@ src_format: source data format. dst_format: destination data format. )doc"); +REGISTER_OP("DataFormatVecPermute") + .Input("x: T") + .Output("y: T") + .Attr("T: {int32, int64} = DT_INT32") + .Attr("src_format: string = 'NHWC'") + .Attr("dst_format: string = 'NCHW'") + .SetShapeFn(shape_inference::UnchangedShape) + .Doc(R"doc( +Returns the permuted vector in the destination data format given the one in +the source data format. + +x: Vector in source data format. Must be of size 4. +y: Vector in destination data format. Must be of size 4. +src_format: source data format. +dst_format: destination data format. +)doc"); + REGISTER_OP("FusedResizeAndPadConv2D") .Input("input: T") .Input("size: int32") |