Code Monkey home page Code Monkey logo

deep_spectre's People

Contributors

asm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

deep_spectre's Issues

implicit-function-declaration

python setup.py install
running install
running build
running build_ext
building 'deep_spectre' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -g0 -ggdb0 -Ofast -mtune=native -march=native -mfpmath=sse -fexcess-precision=fast -fno-strict-aliasing --param l2-cache-size=2048 --param l1-cache-line-size=64 --param l1-cache-size=64 -D_FORTIFY_SOURCE=2 -fPIE -pie -fPIC -fstack-protector -Wl,-z,relro -Wl,-z,now -fPIC -I/usr/include/python2.7 -c deep_spectre.c -o build/temp.linux-x86_64-2.7/deep_spectre.o
deep_spectre.c: In function 'readMemoryByte':
deep_spectre.c:69:5: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (volatile int z = 0; z < 100; z++) {} /* Delay (can also mfence) /
^
deep_spectre.c:69:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
deep_spectre.c:85:23: warning: pointer targets in passing argument 1 of '__rdtscp' differ in signedness [-Wpointer-sign]
time1 = __rdtscp( & junk); /
READ TIMER */
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:27:0,
from deep_spectre.c:8:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/ia32intrin.h:112:1: note: expected 'unsigned int *' but argument is of type 'int *'
__rdtscp (unsigned int __A) ^
deep_spectre.c:87:23: warning: pointer targets in passing argument 1 of '__rdtscp' differ in signedness [-Wpointer-sign]
time2 = __rdtscp( & junk) - time1; /
READ TIMER & COMPUTE ELAPSED TIME */
^
In file included from /usr/lib/gcc/x86_64-linux-gnu/4.9/include/x86intrin.h:27:0,
from deep_spectre.c:8:
/usr/lib/gcc/x86_64-linux-gnu/4.9/include/ia32intrin.h:112:1: note: expected 'unsigned int *' but argument is of type 'int *'
__rdtscp (unsigned int __A)
^
deep_spectre.c: At top level:
deep_spectre.c:145:15: error: variable 'deep_spectre_module' has initializer but incomplete type
static struct PyModuleDef deep_spectre_module = {
^
deep_spectre.c:146:5: error: 'PyModuleDef_HEAD_INIT' undeclared here (not in a function)
PyModuleDef_HEAD_INIT,
^
deep_spectre.c:146:5: warning: excess elements in struct initializer
deep_spectre.c:146:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:147:5: warning: excess elements in struct initializer
"deep_spectre", /
name of module /
^
deep_spectre.c:147:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:148:5: warning: excess elements in struct initializer
NULL, /
module documentation, may be NULL /
^
deep_spectre.c:148:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:149:5: warning: excess elements in struct initializer
-1, /
size of per-interpreter state of the module,
^
deep_spectre.c:149:5: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c:152:1: warning: excess elements in struct initializer
};
^
deep_spectre.c:152:1: warning: (near initialization for 'deep_spectre_module')
deep_spectre.c: In function 'PyInit_deep_spectre':
deep_spectre.c:156:5: warning: implicit declaration of function 'PyModule_Create' [-Wimplicit-function-declaration]
return PyModule_Create(&deep_spectre_module);
^
deep_spectre.c:156:5: warning: 'return' with a value, in function returning void
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

No expected result

Hello, I would like to ask a question about your job. When I run your code on m computer, it could not recover the correct message and show a low accuracy when training data. Is there anything I should pay attention to or do some modify when I run your code ? Thank you !
The result is as follows.
`Epoch 1/10

  • 11s - loss: 4.1652 - accuracy: 0.0157 - val_loss: 4.1609 - val_accuracy: 0.0133
    Epoch 2/10
  • 7s - loss: 4.1594 - accuracy: 0.0161 - val_loss: 4.1625 - val_accuracy: 0.0131
    Epoch 3/10
  • 9s - loss: 4.1576 - accuracy: 0.0165 - val_loss: 4.1667 - val_accuracy: 0.0134
    Epoch 4/10
  • 10s - loss: 4.1558 - accuracy: 0.0166 - val_loss: 4.1859 - val_accuracy: 0.0133
    Epoch 5/10
  • 9s - loss: 4.1525 - accuracy: 0.0187 - val_loss: 4.1734 - val_accuracy: 0.0176
    Epoch 6/10
  • 9s - loss: 4.1116 - accuracy: 0.0295 - val_loss: 4.1176 - val_accuracy: 0.0391
    Epoch 7/10
  • 7s - loss: 4.0184 - accuracy: 0.0608 - val_loss: 4.0359 - val_accuracy: 0.0656
    Epoch 8/10
  • 7s - loss: 3.9256 - accuracy: 0.0816 - val_loss: 3.9817 - val_accuracy: 0.0762
    Epoch 9/10
  • 6s - loss: 3.8363 - accuracy: 0.1020 - val_loss: 3.9174 - val_accuracy: 0.0997
    Epoch 10/10
  • 7s - loss: 3.7480 - accuracy: 0.1224 - val_loss: 3.8503 - val_accuracy: 0.1159
    The secret message is: 8he86aaicfcorQA8a8e8aqueamiYh8YT8ifra.e.
    `

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.