MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / UnicodeEncodeOp

Method UnicodeEncodeOp

tensorflow/core/kernels/unicode_ops.cc:510–515  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

508class 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.

Callers

nothing calls this directly

Calls 3

ParseUnicodeEncodingFunction · 0.85
GetErrorOptionsFunction · 0.85
GetAttrMethod · 0.45

Tested by

no test coverage detected