Fixed invalid header and incomplete strings in samples.
Change: 149615375
This commit is contained in:
parent
2a01758b97
commit
89df2a1b41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user