modified SSE code building
This commit is contained in:
@@ -8,13 +8,11 @@
|
||||
int main() {
|
||||
{
|
||||
NeuralNetwork::BasisFunction::Linear l;
|
||||
assert(39.0==l.compute({1,2,3,5},{1,2,3,5}));
|
||||
assert(39.0==l.computeStreaming({1,2,3,5},{1,2,3,5}));
|
||||
assert(39.0==l({1,2,3,5},{1,2,3,5}));
|
||||
}
|
||||
{
|
||||
NeuralNetwork::BasisFunction::Linear l;
|
||||
assert(88.0==l.computeStreaming({1,2,3,5,7},{1,2,3,5,7}));
|
||||
assert(88.0==l.compute({1,2,3,5,7},{1,2,3,5,7}));
|
||||
assert(88.0==l({1,2,3,5,7},{1,2,3,5,7}));
|
||||
}
|
||||
{
|
||||
NeuralNetwork::BasisFunction::Linear l;
|
||||
@@ -22,8 +20,7 @@ int main() {
|
||||
for(int in=0;in<100;in++) {
|
||||
w.push_back(2);
|
||||
}
|
||||
assert(400.0==l.computeStreaming(w,w));
|
||||
assert(400.0==l.compute(w,w));
|
||||
assert(400.0==l(w,w));
|
||||
}
|
||||
{
|
||||
NeuralNetwork::BasisFunction::Linear l;
|
||||
@@ -31,8 +28,7 @@ int main() {
|
||||
for(int in=0;in<55;in++) {
|
||||
w.push_back(2);
|
||||
}
|
||||
assert(220.0==l.computeStreaming(w,w));
|
||||
assert(220.0==l.compute(w,w));
|
||||
assert(220.0==l(w,w));
|
||||
}
|
||||
{
|
||||
NeuralNetwork::BasisFunction::Product l;
|
||||
|
||||
Reference in New Issue
Block a user