-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
This is a D port of nicodjimenez minimal lstm python example found at | ||
http://github.com/nicodjimenez/lstm | ||
|
||
You get the best performance when compiling with with ldc in release mode. | ||
The according dub call would be: | ||
|
||
|
||
``` | ||
dub -b ldmd2 | ||
``` | ||
|
||
**NOTE** The required version to compile mir (a library we use for this example) | ||
is **1.1.0-beta2** (at this time, anyway). Check | ||
https://github.com/ldc-developers/ldc for more information | ||
|
||
|
||
I found that the python example takes **0.18s** to run and with the proper | ||
optimization the D example takes **0.11s**. |