Fix ops pbtxt

PiperOrigin-RevId: 312288981
Change-Id: I9cee129d2d38c4cd22f3fa81537f103a65b86ad9
This commit is contained in:
Mark Daoust 2020-05-19 08:55:30 -07:00 committed by TensorFlower Gardener
parent be4980e340
commit fb7ba76670
6 changed files with 299 additions and 15 deletions

View File

@ -6,7 +6,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -49,7 +49,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -57,8 +57,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }

View File

@ -10,7 +10,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -53,7 +53,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -61,8 +61,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }

View File

@ -14,7 +14,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -57,7 +57,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -65,8 +65,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }

View File

@ -0,0 +1,72 @@
op {
name: "SparseCrossHashed"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense_inputs"
type_list_attr: "dense_types"
}
input_arg {
name: "num_buckets"
type: DT_INT64
}
input_arg {
name: "strong_hash"
type: DT_BOOL
}
input_arg {
name: "salt"
type: DT_INT64
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type: DT_INT64
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}

View File

@ -0,0 +1,64 @@
op {
name: "SparseCrossV2"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense_inputs"
type_list_attr: "dense_types"
}
input_arg {
name: "sep"
type: DT_STRING
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type: DT_STRING
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}

View File

@ -11515,7 +11515,7 @@ op {
} }
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
default_value { default_value {
b: false b: false
@ -11530,7 +11530,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -11573,7 +11573,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -11581,8 +11581,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }
@ -33206,7 +33208,7 @@ op {
} }
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
default_value { default_value {
b: false b: false
@ -33225,7 +33227,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -33268,7 +33270,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -33276,8 +33278,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }
@ -44717,7 +44721,7 @@ op {
} }
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
default_value { default_value {
b: false b: false
@ -44849,7 +44853,7 @@ op {
} }
input_arg { input_arg {
name: "weights" name: "weights"
type: DT_FLOAT type_attr: "output_type"
} }
output_arg { output_arg {
name: "output_indices" name: "output_indices"
@ -44892,7 +44896,7 @@ op {
minimum: -1 minimum: -1
} }
attr { attr {
name: "binary_count" name: "binary_output"
type: "bool" type: "bool"
} }
attr { attr {
@ -44900,8 +44904,10 @@ op {
type: "type" type: "type"
allowed_values { allowed_values {
list { list {
type: DT_INT32
type: DT_INT64 type: DT_INT64
type: DT_FLOAT type: DT_FLOAT
type: DT_DOUBLE
} }
} }
} }
@ -44999,6 +45005,142 @@ op {
} }
} }
} }
op {
name: "SparseCrossHashed"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense_inputs"
type_list_attr: "dense_types"
}
input_arg {
name: "num_buckets"
type: DT_INT64
}
input_arg {
name: "strong_hash"
type: DT_BOOL
}
input_arg {
name: "salt"
type: DT_INT64
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type: DT_INT64
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}
op {
name: "SparseCrossV2"
input_arg {
name: "indices"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "values"
type_list_attr: "sparse_types"
}
input_arg {
name: "shapes"
type: DT_INT64
number_attr: "N"
}
input_arg {
name: "dense_inputs"
type_list_attr: "dense_types"
}
input_arg {
name: "sep"
type: DT_STRING
}
output_arg {
name: "output_indices"
type: DT_INT64
}
output_arg {
name: "output_values"
type: DT_STRING
}
output_arg {
name: "output_shape"
type: DT_INT64
}
attr {
name: "N"
type: "int"
has_minimum: true
}
attr {
name: "sparse_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
attr {
name: "dense_types"
type: "list(type)"
has_minimum: true
allowed_values {
list {
type: DT_INT64
type: DT_STRING
}
}
}
}
op { op {
name: "SparseDenseCwiseAdd" name: "SparseDenseCwiseAdd"
input_arg { input_arg {