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
private static immutable FuncNum = 10_000; | |
void main() { | |
import std.algorithm : map; | |
import std.array : join; | |
import std.datetime.stopwatch : benchmark; | |
import std.file : write, remove; | |
import std.format : format; | |
import std.process : execute; | |
import std.range : iota; |
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
// origin https://gist.githubusercontent.com/belltailjp/4653695/raw/1cf8b5cbb6c3b4d4f9374b8b1ccae702867543ef/simd.cpp | |
#include <iostream> | |
#include <random> | |
#include <algorithm> | |
#include <xmmintrin.h> | |
#include <immintrin.h> |
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
---epoch 9--- | |
source label:-1, data:[0 0 0 0 0 0 0 0] | |
predoct label:-1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442 | |
-1.12607911 -1.17872689 0.41622946] | |
OK | |
source label:1, data:[0 1 0 0 0 0 0 1] | |
predoct label:1, weight:[-0.39016744 1.07635597 0.21081006 0.18976978 -0.7392488 0.20338442 | |
-1.12607911 -1.17872689 0.41622946] | |
OK | |
source label:1, data:[1 0 1 0 0 0 0 0] |