-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: fix parametric NDArray in lstm example (#370)
and fix some depwarns fix #368
- Loading branch information
Showing
5 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
const DROPOUT = 0 | ||
const BATCH_SIZE = 32 | ||
const SEQ_LENGTH = 32 | ||
const DIM_HIDDEN = 256 | ||
const DIM_EMBED = 256 | ||
const LSTM_N_LAYER = 2 | ||
const N_EPOCH = 21 | ||
const BASE_LR = 0.01 | ||
const WEIGHT_DECAY = 0.00001 | ||
const CLIP_GRADIENT = 1 | ||
const NAME = :ptb | ||
const N_GPU = 4 | ||
const USE_GPU = true | ||
const DATA_TR_RATIO = 0.9 | ||
const CKPOINT_PREFIX = joinpath(dirname(@__FILE__), "checkpoints/$NAME") | ||
const DROPOUT = 0 | ||
const BATCH_SIZE = 32 | ||
const SEQ_LENGTH = 32 | ||
const DIM_HIDDEN = 256 | ||
const DIM_EMBED = 256 | ||
const LSTM_N_LAYER = 2 | ||
const N_EPOCH = 21 | ||
const BASE_LR = 0.01 | ||
const WEIGHT_DECAY = 0.00001 | ||
const CLIP_GRADIENT = 1 | ||
const NAME = :ptb | ||
const N_GPU = 1 | ||
const USE_GPU = true | ||
const DATA_TR_RATIO = 0.9 | ||
const CKPOINT_PREFIX = joinpath(@__DIR__, "checkpoints/$NAME") | ||
|
||
const BATCH_SIZE_SMP= 10 | ||
const SAMPLE_LENGTH = 100 | ||
const SAMPLE_START = 'a' | ||
|
||
const UNKNOWN_CHAR = Char(0) | ||
const INPUT_FILE = joinpath(dirname(@__FILE__), "input.txt") | ||
const VOCAB_FILE = joinpath(dirname(@__FILE__), "vocab.dat") | ||
const BATCH_SIZE_SMP = 10 | ||
const SAMPLE_LENGTH = 100 | ||
const SAMPLE_START = 'a' | ||
|
||
const UNKNOWN_CHAR = Char(0) | ||
const INPUT_FILE = joinpath(@__DIR__, "input.txt") | ||
const VOCAB_FILE = joinpath(@__DIR__, "vocab.dat") |
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
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
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
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