This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Little script demonstration how to run cudnn rnns | |
without cudnn using dynamic rnn with the same weights | |
(e.g. train on cudnn, use with dynamic rnn on cpu). | |
Note: this will run slower than cudnn on a gpu (see below). | |
Tested on Titan X Pascal: | |
With cudnn 3.5s vs. with dynamic_rnn 8s to run through 79 batches | |
with batch size 128. | |
Network: input size: 127, 2 layer bidirectional LSTM with num_units 200. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "CIFAR10_resnet" | |
layer { | |
name: "data" | |
type: "Data" | |
top: "data" | |
top: "label" | |
include { | |
phase: TRAIN | |
} | |
transform_param { |