Skip to content

Commit 40b78cd

Browse files
mrrytensorflower-gardener
authored andcommitted
Make the absence of an op registration for a registered kernel a fatal error.
Change: 150082087
1 parent 8ba61d6 commit 40b78cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tensorflow/core/framework/op_kernel.cc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,8 +1098,7 @@ Status ValidateKernelRegistrations(const OpRegistryInterface& op_registry) {
10981098
const OpRegistrationData* op_reg_data;
10991099
const Status status = op_registry.LookUp(kernel_def.op(), &op_reg_data);
11001100
if (!status.ok()) {
1101-
// TODO(josh11b): Make this a hard error.
1102-
LOG(ERROR) << "OpKernel ('" << ProtoShortDebugString(kernel_def)
1101+
LOG(FATAL) << "OpKernel ('" << ProtoShortDebugString(kernel_def)
11031102
<< "') for unknown op: " << kernel_def.op();
11041103
continue;
11051104
}

0 commit comments

Comments
 (0)