diff --git a/tensorflow/docs_src/extend/adding_an_op.md b/tensorflow/docs_src/extend/adding_an_op.md index 9b55f95cb7c..85f3aa2ce4d 100644 --- a/tensorflow/docs_src/extend/adding_an_op.md +++ b/tensorflow/docs_src/extend/adding_an_op.md @@ -530,6 +530,7 @@ REGISTER_OP("AttrDefaultExampleForAllTypes") Note in particular that the values of type `type` use @{$dims_types#data-types$the `DT_*` names for the types}. #### Polymorphism {#polymorphism} + ##### Type Polymorphism For ops that can take different types as input or produce different output @@ -871,11 +872,11 @@ expressions: ```c++ REGISTER_OP("PolymorphicSingleInput") .Attr("T: type") - .Input("in: T); + .Input("in: T"); REGISTER_OP("RestrictedPolymorphicSingleInput") .Attr("T: {int32, int64}") - .Input("in: T); + .Input("in: T"); ``` Referencing an attr of type `list(type)` allows you to accept a sequence of