# Operator

public abstract @interface **Operator**
Annotation used by classes to make TensorFlow operations conveniently accessible via
`
org.tensorflow.op.Ops
`
.


An annotation processor (
`
org.tensorflow.processor.OperatorProcessor
`
) builds the
`
Ops
`
class by aggregating all classes annotated as
`
@Operator
`
s. Each annotated
class
**must**
have at least one public static factory method named
`
create
`
that
accepts a
`
https://www.tensorflow.org/versions/r2.6/api_docs/java/org/tensorflow/op/Scope
`
as its first argument. The processor then adds a
convenience method in the
`
Ops
`
class. For example:

```
{@code
```

<br />

<br />

### Inherited Methods

From interface java.lang.annotation.Annotation

|---|---|
| abstract Class\<? extends Annotation\> | annotationType () |
| abstract boolean | equals (Object arg0) |
| abstract int | hashCode () |
| abstract String | toString () |