# GRUBlockCell

public final class **GRUBlockCell** Computes the GRU cell forward propagation for 1 time step.


Args
x: Input to the GRU cell.
h_prev: State input from the previous GRU cell.
w_ru: Weight matrix for the reset and update gate.
w_c: Weight matrix for the cell connection gate.
b_ru: Bias vector for the reset and update gate.
b_c: Bias vector for the cell connection gate.


Returns
r: Output of the reset gate.
u: Output of the update gate.
c: Output of the cell connection gate.
h: Current state of the GRU cell.


Note on notation of the variables:


Concatenation of a and b is represented by a_b
Element-wise dot product of a and b is represented by ab
Element-wise dot product is represented by \\circ
Matrix multiplication is represented by \*


Biases are initialized with :
\`b_ru\` - constant_initializer(1.0)
\`b_c\` - constant_initializer(0.0)


This kernel op implements the following mathematical equations:

    x_h_prev = [x, h_prev]
     
     [r_bar u_bar] = x_h_prev * w_ru + b_ru
     
     r = sigmoid(r_bar)
     u = sigmoid(u_bar)
     
     h_prevr = h_prev \circ r
     
     x_h_prevr = [x h_prevr]
     
     c_bar = x_h_prevr * w_c + b_c
     c = tanh(c_bar)
     
     h = (1-u) \circ c + u \circ h_prev
     
<br />

<br />

<br />

<br />

<br />

<br />

<br />

### Public Methods

|---|---|
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [c](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell#c())() |
| static \<T extends Number\> [GRUBlockCell](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell)\<T\> | [create](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell#create(org.tensorflow.op.Scope,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>,%20org.tensorflow.Operand<T>))([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> x, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> hPrev, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> wRu, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> wC, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> bRu, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> bC) Factory method to create a class wrapping a new GRUBlockCell operation. |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [h](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell#h())() |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [r](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell#r())() |
| [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\> | [u](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell#u())() |

### Inherited Methods

From class [org.tensorflow.op.PrimitiveOp](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp)

|---|---|
| final boolean | [equals](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#equals(java.lang.Object))(Object obj) |
| final int | [hashCode](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#hashCode())() |
| [Operation](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation) | [op](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#op())() Returns the underlying `https://www.tensorflow.org/api_docs/java/org/tensorflow/Operation` |
| final String | [toString](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/PrimitiveOp#toString())() |

From class java.lang.Object

|---|---|
| boolean | equals(Object arg0) |
| final Class\<?\> | getClass() |
| int | hashCode() |
| final void | notify() |
| final void | notifyAll() |
| String | toString() |
| final void | wait(long arg0, int arg1) |
| final void | wait(long arg0) |
| final void | wait() |

## Public Methods

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**c**
()

<br />

#### public static [GRUBlockCell](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/core/GRUBlockCell)\<T\>
**create**
([Scope](https://www.tensorflow.org/api_docs/java/org/tensorflow/op/Scope) scope, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> x, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> hPrev, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> wRu, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> wC, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> bRu, [Operand](https://www.tensorflow.org/api_docs/java/org/tensorflow/Operand)\<T\> bC)

Factory method to create a class wrapping a new GRUBlockCell operation.

##### Parameters

| scope | current scope |
|---|---|

##### Returns

- a new instance of GRUBlockCell

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**h**
()

<br />

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**r**
()

<br />

#### public [Output](https://www.tensorflow.org/api_docs/java/org/tensorflow/Output)\<T\>
**u**
()

<br />