[TF:XLA] Fix typo in function name.
PiperOrigin-RevId: 217582093
This commit is contained in:
parent
9fafb44f87
commit
610ebb2101
@ -293,7 +293,7 @@ Status SetNodeShardingFromNeighbors(Node* n, bool out_edges) {
|
||||
return Status::OK();
|
||||
}
|
||||
|
||||
void AddDtypeToKernalDefConstraint(absl::string_view name, DataType dtype,
|
||||
void AddDtypeToKernelDefConstraint(absl::string_view name, DataType dtype,
|
||||
KernelDef* kdef) {
|
||||
for (KernelDef::AttrConstraint& constraint : *kdef->mutable_constraint()) {
|
||||
if (constraint.name() == name) {
|
||||
|
@ -55,7 +55,7 @@ string TensorIdToString(const tf2xla::TensorId& id);
|
||||
Status SetNodeShardingFromNeighbors(Node* n, bool out_edges);
|
||||
|
||||
// Add an allowed data type to the AttrConstraint with the given name.
|
||||
void AddDtypeToKernalDefConstraint(absl::string_view name, DataType dtype,
|
||||
void AddDtypeToKernelDefConstraint(absl::string_view name, DataType dtype,
|
||||
KernelDef* kdef);
|
||||
|
||||
// Returns the next random seed to use for seeding xla rng.
|
||||
|
@ -21,10 +21,10 @@ namespace tensorflow {
|
||||
|
||||
bool CpuOpFilter(KernelDef* kdef) {
|
||||
if (kdef->op() == "Const") {
|
||||
AddDtypeToKernalDefConstraint("dtype", DT_STRING, kdef);
|
||||
AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef);
|
||||
}
|
||||
if (kdef->op() == "Assert") {
|
||||
AddDtypeToKernalDefConstraint("T", DT_STRING, kdef);
|
||||
AddDtypeToKernelDefConstraint("T", DT_STRING, kdef);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -21,10 +21,10 @@ namespace tensorflow {
|
||||
|
||||
bool GpuOpFilter(KernelDef* kdef) {
|
||||
if (kdef->op() == "Const") {
|
||||
AddDtypeToKernalDefConstraint("dtype", DT_STRING, kdef);
|
||||
AddDtypeToKernelDefConstraint("dtype", DT_STRING, kdef);
|
||||
}
|
||||
if (kdef->op() == "Assert") {
|
||||
AddDtypeToKernalDefConstraint("T", DT_STRING, kdef);
|
||||
AddDtypeToKernelDefConstraint("T", DT_STRING, kdef);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user