| 508 | class UnicodeEncodeOp : public OpKernel { |
| 509 | public: |
| 510 | explicit UnicodeEncodeOp(OpKernelConstruction* ctx) : OpKernel(ctx) { |
| 511 | string encoding_tmp; |
| 512 | OP_REQUIRES_OK(ctx, ctx->GetAttr("output_encoding", &encoding_tmp)); |
| 513 | OP_REQUIRES_OK(ctx, ParseUnicodeEncoding(encoding_tmp, &encoding_)); |
| 514 | OP_REQUIRES_OK(ctx, GetErrorOptions(ctx, &error_options_)); |
| 515 | } |
| 516 | |
| 517 | /** |
| 518 | * Encodes Unicode codepoints into the desired string representation. |
nothing calls this directly
no test coverage detected