Skip to content
This repository was archived by the owner on Sep 25, 2024. It is now read-only.
This repository was archived by the owner on Sep 25, 2024. It is now read-only.

Use CuDNN GRU for 6x faster RNN computation #2

@bzamecnik

Description

@bzamecnik

Keras 2.1.0 offers keras.layers.CuDNNGRU, a drop-in replacement for keras.layers.GRU, that's backed by an optimized implementation from CuDNN.

Speedup for the RNN computation observed in nvprof is 6x, similar to what's reported elsewhere about CuDNNGRU. Note that it needs TensorFlow, CuDNN and an NVIDIA GPU. For CPU usage it has to be replaced by ordinary GRU layer. Saved weights are compatible. In practice it works well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions