aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/api_def/base_api/api_def_UnicodeScript.pbtxt
blob: 7898fe8d6bc8b39be4053861fcf06f3c23655612 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
op {
  graph_op_name: "UnicodeScript"
  endpoint {
    name: "UnicodeScript"
  }
  in_arg {
    name: "input"
    description: <<END
A Tensor of int32 Unicode code points.
END
  }
  out_arg {
    name: "output"
    description: <<END
A Tensor of int32 script codes corresponding to each input code point.
END
  }
  summary: <<END
Determine the script codes of a given tensor of Unicode integer code points.
END
  description: <<END
This operation converts Unicode code points to script codes corresponding to
each code point. Script codes correspond to International Components for
Unicode (ICU) UScriptCode values. See http://icu-project.org/apiref/icu4c/uscript_8h.html.
Returns -1 (USCRIPT_INVALID_CODE) for invalid codepoints. Output shape will
match input shape.
END
}