aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-06-16 18:02:19 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-06-16 19:16:23 -0700
commit92753d80cf09efd6e9b9156e7ad08b3203214cec (patch)
treecd67896faad2f70b04c3b2eea5292e7ab3f7f0ea
parent46bb9a3d57976c5dec45e170779134d8b8c6800d (diff)
Update ops-related pbtxt files.
Change: 125126928
-rw-r--r--tensorflow/core/ops/compat/ops_history.v0.pbtxt40
-rw-r--r--tensorflow/core/ops/ops.pbtxt48
2 files changed, 88 insertions, 0 deletions
diff --git a/tensorflow/core/ops/compat/ops_history.v0.pbtxt b/tensorflow/core/ops/compat/ops_history.v0.pbtxt
index 6f5ed59083..785bda9d78 100644
--- a/tensorflow/core/ops/compat/ops_history.v0.pbtxt
+++ b/tensorflow/core/ops/compat/ops_history.v0.pbtxt
@@ -10496,6 +10496,46 @@ op {
}
}
op {
+ name: "InitializeTableFromTextFile"
+ input_arg {
+ name: "table_handle"
+ type: DT_STRING
+ is_ref: true
+ }
+ input_arg {
+ name: "filename"
+ type: DT_STRING
+ }
+ attr {
+ name: "key_index"
+ type: "int"
+ has_minimum: true
+ minimum: -2
+ }
+ attr {
+ name: "value_index"
+ type: "int"
+ has_minimum: true
+ minimum: -2
+ }
+ attr {
+ name: "vocab_size"
+ type: "int"
+ default_value {
+ i: -1
+ }
+ has_minimum: true
+ minimum: -1
+ }
+ attr {
+ name: "delimiter"
+ type: "string"
+ default_value {
+ s: "\t"
+ }
+ }
+}
+op {
name: "Inv"
input_arg {
name: "x"
diff --git a/tensorflow/core/ops/ops.pbtxt b/tensorflow/core/ops/ops.pbtxt
index de8fae6e4c..1611224a10 100644
--- a/tensorflow/core/ops/ops.pbtxt
+++ b/tensorflow/core/ops/ops.pbtxt
@@ -5960,6 +5960,54 @@ op {
summary: "Table initializer that takes two tensors for keys and values respectively."
}
op {
+ name: "InitializeTableFromTextFile"
+ input_arg {
+ name: "table_handle"
+ description: "Handle to a table which will be initialized."
+ type: DT_STRING
+ is_ref: true
+ }
+ input_arg {
+ name: "filename"
+ description: "Filename of a vocabulary text file."
+ type: DT_STRING
+ }
+ attr {
+ name: "key_index"
+ type: "int"
+ description: "Column index in a line to get the table `key` values from."
+ has_minimum: true
+ minimum: -2
+ }
+ attr {
+ name: "value_index"
+ type: "int"
+ description: "Column index that represents information of a line to get the table\n`value` values from."
+ has_minimum: true
+ minimum: -2
+ }
+ attr {
+ name: "vocab_size"
+ type: "int"
+ default_value {
+ i: -1
+ }
+ description: "Number of elements of the file, use -1 if unknown."
+ has_minimum: true
+ minimum: -1
+ }
+ attr {
+ name: "delimiter"
+ type: "string"
+ default_value {
+ s: "\t"
+ }
+ description: "Delimiter to separate fields in a line."
+ }
+ summary: "Initializes a table from a text file."
+ description: "It inserts one key-value pair into the table for each line of the file.\nThe key and value is extracted from the whole line content, elements from the\nsplit line based on `delimiter` or the line number (starting from zero).\nWhere to extract the key and value from a line is specified by `key_index` and\n`value_index`.\n\n- A value of -1 means use the line number(starting from zero), expects `int64`.\n- A value of -2 means use the whole line content, expects `string`.\n- A value >= 0 means use the index (starting at zero) of the split line based\n on `delimiter`."
+}
+op {
name: "Inv"
input_arg {
name: "x"