# 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/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 />

### Public Methods

|---|---|
| String | [group](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/annotation/Operator#group())() Specify an optional group within the `Ops` class. |
| String | [name](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/annotation/Operator#name())() Name for the wrapper method used in the `Ops` class. |

### Inherited Methods

From interface java.lang.annotation.Annotation

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

## Public Methods

#### public String
**group**
()

Specify an optional group within the `Ops` class.

By default, an annotation processor will create convenience methods directly in the `Ops` class. An annotated operator may optionally choose to place the method within a group. For
example:

```
{@code
```

<br />

<br />

#### public String
**name**
()

Name for the wrapper method used in the `Ops` class.

By default, a processor derives the method name in the `Ops` class from the class name
of the operator. This attribute allow you to provide a different name instead. For example:

```
{@code
```

<br />

<br />