资源算法pt-dilate-rnn

pt-dilate-rnn

2019-09-17 | |  65 |   0 |   0

PyTorch Dilated Recurrent Neural Networks

PyTorch implementation of Dilated Recurrent Neural Networks (DilatedRNN).

Getting Started

Installation:

pip install -r requirements.txt

Run the tests:

python tests.py

Example

Define a dilated RNN based on GRU cells with 9 layers, dilations 1, 2, 4, 8, 16, ... Then pass the hidden state to a further update

import drnnimport torchn_input = 20n_hidden = 32n_layers = 9cell_type = 'GRU'model = drnn.DRNN(n_input, n_hidden, n_layers, cell_type)x1 = torch.autograd.Variable(torch.randn(23, 2, n_input))x2 = torch.autograd.Variable(torch.randn(23, 2, n_input))out, hidden = model(x1)out, hidden = model(x2, hidden)

Copy Task

python3 -m copy_memory.copymem_test --help

Character LeveL RNN

python3 -m char_rnn.char_rnn_test --help


上一篇:vqa-winner-cvprw-2017

下一篇:VGG-CAM

用户评价
全部评价

热门资源

  • Keras-ResNeXt

    Keras ResNeXt Implementation of ResNeXt models...

  • seetafaceJNI

    项目介绍 基于中科院seetaface2进行封装的JAVA...

  • spark-corenlp

    This package wraps Stanford CoreNLP annotators ...

  • capsnet-with-caps...

    CapsNet with capsule-wise convolution Project ...

  • inferno-boilerplate

    This is a very basic boilerplate example for pe...