Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public Strip strip(Operand<TString> input) {
* <p><em>NOTE</em>: {@code strings.Substr} supports broadcasting up to two dimensions. More about
* broadcasting
* <a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a>
* <hr />
* <hr>
* <p>Examples
* <p>Using scalar {@code pos} and {@code len}:
* <pre>
Expand Down Expand Up @@ -670,7 +670,7 @@ public <T extends TNumber> UnicodeDecodeWithOffsets<T> unicodeDecodeWithOffsets(
* Returns a vector of strings, where {@code output[i]} is constructed by encoding the
* Unicode codepoints in {@code input_values[input_splits[i]:input_splits[i+1]]}
* using {@code output_encoding}.
* <hr />
* <hr>
* <p>Example:
* <pre>
* input_values = [72, 101, 108, 108, 111, 87, 111, 114, 108, 100]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
* <p><em>NOTE</em>: {@code strings.Substr} supports broadcasting up to two dimensions. More about
* broadcasting
* <a href="http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html">here</a>
* <hr />
* <hr>
* <p>Examples
* <p>Using scalar {@code pos} and {@code len}:
* <pre>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* Returns a vector of strings, where {@code output[i]} is constructed by encoding the
* Unicode codepoints in {@code input_values[input_splits[i]:input_splits[i+1]]}
* using {@code output_encoding}.
* <hr />
* <hr>
* <p>Example:
* <pre>
* input_values = [72, 101, 108, 108, 111, 87, 111, 114, 108, 100]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,17 @@
* <p>It is mandatory for the annotated method to be public, static and to take as its first
* parameter an instance of {@link org.tensorflow.op.Scope}. For example:
*
* <pre>{@code
* @Operator
* <pre>
* {@code
* {@literal @}Operator
* public class MyOp implements Op {
* @Endpoint
* {@literal @}Endpoint
* public static MyOp create(Scope scope, Operand<?> input) {
* ...
* }
* }
* }</pre>
* }
* </pre>
*
* In addition, two endpoints of the same class cannot have the same signature, or the annotation
* processor will fail to generate the {@code Ops} classes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,31 @@
* {@link org.tensorflow.op.Scope} as its first argument. The processor then adds a convenience
* method in the {@code Ops} class. For example:
*
* <pre>{@code
* @Operator
* <pre>
* {@code
* {@literal @}Operator
* public final class MyOp implements Op {
* @Endpoint
* {@literal @}Endpoint
* public static MyOp create(Scope scope, Operand<?> operand) {
* ...
* }
* }
* }</pre>
* }
* </pre>
*
* <p>results in a method in the {@code Ops} class
*
* <pre>{@code
* <pre>
* {@code
* import org.tensorflow.op.Ops;
* ...
* Ops ops = Ops.create(graph);
* ...
* ops.myOp(operand);
* // and has exactly the same effect as calling
* // MyOp.create(ops.getScope(), operand);
* }</pre>
* }
* </pre>
*/
@Documented
@Target(ElementType.TYPE)
Expand All @@ -64,36 +68,44 @@
* Ops} class. An annotated operator may optionally choose to place the method within a group. For
* example:
*
* <pre>{@code
* @Operator(group="math")
* <pre>
* {@code
* {@literal @}Operator(group="math")
* public final class Add extends RawOp implements Operand {
* ...
* }
* }</pre>
* }
* </pre>
*
* <p>results in the {@code add} method placed within a {@code math} group within the {@code Ops}
* class.
*
* <pre>{@code
* <pre>
* {@code
* ops.math.add(...);
* }</pre>
* }
* </pre>
*
* <p>The operator can also be classified into subgroups of another group, following a semantic
* similar to Java packages. For example:
*
* <pre>{@code
* @Operator(group="data.experimental")
* <pre>
* {@code
* {@literal @}Operator(group="data.experimental")
* public final class MyDataset extends RawOp implements Operand {
* ...
* }
* }</pre>
* }
* </pre>
*
* <p>results in the {@code add} method placed within a {@code experimental} group within the
* {@code DataOps} group class.
*
* <pre>{@code
* <pre>
* {@code
* ops.data.experimental.myDataset(...);
* }</pre>
* }
* </pre>
*
* <p>The group name must be a <a
* href="https://docs.oracle.com/javase/tutorial/java/package/namingpkgs.html">valid Java package
Expand All @@ -107,20 +119,24 @@
* <p>By default, a processor derives the method name in the {@code Ops} class from the class name
* of the operator. This attribute allow you to provide a different name instead. For example:
*
* <pre>{@code
* @Operator(name="myOperation")
* <pre>
* {@code
* {@literal @}Operator(name="myOperation")
* public final class MyRealOperation implements Operand {
* public static MyRealOperation create(...)
* }
* }</pre>
* }
* </pre>
*
* <p>results in this method added to the {@code Ops} class
*
* <pre>{@code
* <pre>
* {@code
* ops.myOperation(...);
* // and is the same as calling
* // MyRealOperation.create(...)
* }</pre>
* }
* </pre>
*
* <p>The name must be a <a
* href="https://docs.oracle.com/javase/specs/jls/se7/html/jls-3.html#jls-3.8">valid Java
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public void visit(HtmlBlock htmlBlock) {
@Override
public void visit(ThematicBreak thematicBreak) {
writer.line();
writer.tag("hr", getAttrs(thematicBreak, "hr"), true);
writer.tag("hr", getAttrs(thematicBreak, "hr"), false);
writer.line();
}

Expand Down
Loading