# tf.contrib.layers.RevBlock

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/layers/python/layers/rev_block_lib.py#L176-L380) |

Block of reversible layers. See rev_block.

Inherits From: [`Layer`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/layers/Layer)

    tf.contrib.layers.RevBlock(
        f, g, num_layers=1, f_side_input=None, g_side_input=None,
        use_efficient_backprop=True, name='revblock', **kwargs
    )

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `graph` | DEPRECATED FUNCTION <br /> > [!WARNING] > **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Stop using this property because tf.layers layers no longer track their graph. |
| `scope_name` | <br /> |

<br />

## Methods

### `backward`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/layers/python/layers/rev_block_lib.py#L237-L238)

    backward(
        y1, y2
    )

### `forward`

[View source](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/layers/python/layers/rev_block_lib.py#L234-L235)

    forward(
        x1, x2
    )