This file contains hidden or 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
// | |
// 行列積でSIMDの効果を確認するコード. | |
// | |
#include <iostream> | |
#include <chrono> | |
//#define EIGEN_DONT_VECTORIZE | |
#include <Eigen/Core> | |
int main(){ | |
// 有効になっているSIMD命令を表示. |
This file contains hidden or 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
import tensorflow.keras as keras | |
from tensorflow.keras.datasets import mnist | |
from tensorflow.keras.models import Sequential | |
from tensorflow.keras.layers import Dense, Dropout, Flatten | |
from tensorflow.keras.layers import Conv2D, MaxPooling2D | |
from tensorflow.keras import backend as K | |
batch_size = 128 | |
num_classes = 10 | |
epochs = 6 |
This file contains hidden or 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
print("Hello world") |
This file contains hidden or 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
#include <iostream> | |
using namespace std; | |
int main(){ | |
cout << "Hello world" << endl; | |
} |