| 30 | |
| 31 | namespace shape_op_helpers { |
| 32 | inline Status GetShape(OpKernelContext* ctx, int input_index, |
| 33 | TensorShape* shape) { |
| 34 | *shape = ctx->input(input_index).shape(); |
| 35 | return Status::OK(); |
| 36 | } |
| 37 | } // namespace shape_op_helpers |
| 38 | |
| 39 | template <typename OutType> |