Commit 07b87a92 authored by Gustavo Valiente's avatar Gustavo Valiente

Test files removed

parent 3639122b
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv1d_2")
{
pt::Tensor in{2, 1};
in.setData({0.52279603481292724609375, 0.161937892436981201171875});
pt::Tensor expected{1};
expected.setData({-0.26636421680450439453125});
testModel(in, expected, "conv1d_2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv1d_3")
{
pt::Tensor in{3, 1};
in.setData({0.97535002231597900390625, 0.1679832935333251953125, 0.9727876186370849609375});
pt::Tensor expected{1};
expected.setData({0.0589166656136512756347656});
testModel(in, expected, "conv1d_3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv1d_3x3")
{
pt::Tensor in{10, 3};
in.setData({0.805611312389373779296875, 0.548123061656951904296875, 0.2475265562534332275390625, 0.0107717905193567276000977, 0.2469204813241958618164062, 0.2498696595430374145507812, 0.615763366222381591796875, 0.261933505535125732421875, 0.52427589893341064453125, 0.3802552521228790283203125, 0.0360896885395050048828125, 0.843606472015380859375, 0.449966371059417724609375, 0.976480960845947265625, 0.0574472360312938690185547, 0.1630894243717193603515625, 0.1825942844152450561523438, 0.541292607784271240234375, 0.272698879241943359375, 0.4932682812213897705078125, 0.73394298553466796875, 0.1847554147243499755859375, 0.92069733142852783203125, 0.660062968730926513671875, 0.690075337886810302734375, 0.1680863350629806518554688, 0.6857535839080810546875, 0.60180437564849853515625, 0.654961168766021728515625, 0.517694056034088134765625});
pt::Tensor expected{1};
expected.setData({0.87156581878662109375});
testModel(in, expected, "conv1d_3x3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_2x2")
{
pt::Tensor in{2, 2, 1};
in.setData({0.63654029369354248046875, 0.92094719409942626953125, 0.674171924591064453125, 0.2284177392721176147460938});
pt::Tensor expected{1};
expected.setData({1.6406457424163818359375});
testModel(in, expected, "conv_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_3x3")
{
pt::Tensor in{3, 3, 1};
in.setData({0.42455518245697021484375, 0.342557430267333984375, 0.417049109935760498046875, 0.7608392238616943359375, 0.8625495433807373046875, 0.515751361846923828125, 0.2913482189178466796875, 0.2150896936655044555664062, 0.958140075206756591796875});
pt::Tensor expected{1};
expected.setData({-0.352100789546966552734375});
testModel(in, expected, "conv_3x3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_3x3x3")
{
pt::Tensor in{10, 10, 3};
in.setData({8.1461918354034423828125000e-01, 5.4113660007715225219726562e-02, 1.3051067292690277099609375e-01, 8.4244579076766967773437500e-01, 6.1834585666656494140625000e-01, 5.3128778934478759765625000e-01, 2.4829073250293731689453125e-01, 2.9507857561111450195312500e-01, 8.7268614768981933593750000e-01, 4.2166593670845031738281250e-01, 6.4430259168148040771484375e-02, 8.9698505401611328125000000e-01, 2.0338083803653717041015625e-01, 8.2622754573822021484375000e-01, 8.8177061080932617187500000e-01, 4.8675075173377990722656250e-01, 5.9846466779708862304687500e-01, 5.2726745605468750000000000e-01, 6.2482130527496337890625000e-01, 8.5504174232482910156250000e-01, 2.8213945031166076660156250e-01, 8.8375550508499145507812500e-01, 5.6769031286239624023437500e-01, 1.1510304361581802368164062e-01, 2.2700116038322448730468750e-01, 5.9598237276077270507812500e-01, 2.3944623768329620361328125e-01, 1.3141566514968872070312500e-01, 1.6184771060943603515625000e-01, 8.4487253427505493164062500e-01, 6.0218364000320434570312500e-01, 9.6356707811355590820312500e-01, 3.4567922353744506835937500e-01, 5.9562510251998901367187500e-01, 5.9898531436920166015625000e-01, 6.1570429801940917968750000e-01, 5.9177208691835403442382812e-02, 7.5031715631484985351562500e-01, 9.4820952415466308593750000e-01, 5.3467905521392822265625000e-01, 1.9255602359771728515625000e-01, 7.5292593240737915039062500e-01, 7.3189693503081798553466797e-03, 3.2825610041618347167968750e-01, 9.1760635375976562500000000e-01, 5.8836734294891357421875000e-01, 8.5519027709960937500000000e-01, 6.0467207431793212890625000e-01, 8.2257813215255737304687500e-01, 8.7948352098464965820312500e-01, 3.2098636031150817871093750e-01, 1.2295477092266082763671875e-01, 7.2130334377288818359375000e-01, 4.4034707546234130859375000e-01, 1.2673570215702056884765625e-01, 5.8982366323471069335937500e-01, 3.6068312823772430419921875e-02, 2.0018211007118225097656250e-01, 7.8830116987228393554687500e-01, 1.2096759863197803497314453e-02, 3.0334568023681640625000000e-01, 2.1375961601734161376953125e-02, 9.9748498201370239257812500e-01, 5.8202999830245971679687500e-01, 2.9337626695632934570312500e-01, 9.2894947528839111328125000e-01, 5.0711941719055175781250000e-01, 4.5469221472740173339843750e-01, 5.8787149190902709960937500e-01, 2.6413765549659729003906250e-01, 3.0528828501701354980468750e-01, 3.7165457010269165039062500e-01, 2.4444800615310668945312500e-01, 5.8454728126525878906250000e-01, 6.9584614038467407226562500e-01, 7.1947216987609863281250000e-02, 9.7108334302902221679687500e-01, 7.5307065248489379882812500e-01, 8.0616319179534912109375000e-01, 7.5164037942886352539062500e-01, 8.0060973763465881347656250e-02, 4.8169627785682678222656250e-01, 4.4567295908927917480468750e-01, 6.7247265577316284179687500e-01, 4.4873726367950439453125000e-01, 7.0431339740753173828125000e-01, 6.8164533376693725585937500e-01, 6.9714850187301635742187500e-01, 6.1860072612762451171875000e-01, 1.5098072588443756103515625e-01, 7.6080244779586791992187500e-01, 7.8104579448699951171875000e-01, 9.0410298109054565429687500e-01, 2.3376868665218353271484375e-01, 1.7667889595031738281250000e-01, 3.9109912514686584472656250e-01, 3.2056465744972229003906250e-01, 8.1547695398330688476562500e-01, 6.1352592706680297851562500e-01, 7.6000177860260009765625000e-01, 4.2766511440277099609375000e-01, 9.9440559744834899902343750e-02, 1.1503501236438751220703125e-01, 3.7340712547302246093750000e-01, 1.9384776055812835693359375e-01, 8.2074648141860961914062500e-01, 5.9963601827621459960937500e-01, 6.8884527683258056640625000e-01, 4.9110996723175048828125000e-01, 8.8173680007457733154296875e-02, 2.3507763445377349853515625e-01, 4.6160209178924560546875000e-01, 1.9859150052070617675781250e-01, 2.5476235896348953247070312e-02, 7.2939771413803100585937500e-01, 7.2491675615310668945312500e-01, 3.3039173483848571777343750e-01, 8.4349411725997924804687500e-01, 4.2844247817993164062500000e-01, 8.6468613147735595703125000e-01, 6.5706545114517211914062500e-01, 5.8103567361831665039062500e-01, 2.0072749257087707519531250e-01, 5.2954661846160888671875000e-01, 8.9443242549896240234375000e-01, 3.0499398708343505859375000e-01, 8.7094563245773315429687500e-01, 9.0874528884887695312500000e-01, 3.2984456419944763183593750e-01, 6.8307435512542724609375000e-01, 8.9922094345092773437500000e-01, 7.5696878135204315185546875e-02, 8.7858784198760986328125000e-01, 1.9083936512470245361328125e-01, 8.4976893663406372070312500e-01, 6.6711878776550292968750000e-01, 3.4433919191360473632812500e-01, 1.5137557685375213623046875e-01, 6.3537096977233886718750000e-01, 8.4778803586959838867187500e-01, 8.2184934616088867187500000e-01, 6.2823957204818725585937500e-01, 9.5630151033401489257812500e-01, 5.8992314338684082031250000e-01, 1.9783277809619903564453125e-01, 4.2933073639869689941406250e-01, 3.3674600720405578613281250e-01, 9.9194502830505371093750000e-01, 3.8023650646209716796875000e-01, 9.9270087480545043945312500e-01, 5.1880425214767456054687500e-01, 1.7227970063686370849609375e-01, 7.4574068188667297363281250e-02, 3.7030568718910217285156250e-01, 1.2341886013746261596679688e-01, 6.3451874256134033203125000e-01, 4.1391983628273010253906250e-01, 9.9091565608978271484375000e-01, 9.2995560169219970703125000e-01, 1.4923603832721710205078125e-01, 3.9488226175308227539062500e-01, 4.6157971024513244628906250e-01, 5.6094872951507568359375000e-01, 7.8036350011825561523437500e-01, 4.8719391226768493652343750e-01, 4.1999354958534240722656250e-01, 2.6199969649314880371093750e-01, 9.1080611944198608398437500e-01, 2.2271512076258659362792969e-02, 8.2112187147140502929687500e-01, 1.8846839666366577148437500e-01, 6.8575692176818847656250000e-01, 3.5520938038825988769531250e-01, 9.7421264648437500000000000e-01, 1.2277212738990783691406250e-01, 1.8756988644599914550781250e-01, 8.8944250345230102539062500e-01, 5.8340632915496826171875000e-01, 3.0924639105796813964843750e-01, 7.6438550604507327079772949e-04, 2.2759774327278137207031250e-01, 1.4540363848209381103515625e-01, 2.0343382656574249267578125e-01, 8.9632254838943481445312500e-01, 8.7309437990188598632812500e-01, 7.0028942823410034179687500e-01, 4.7049766778945922851562500e-01, 8.2713598012924194335937500e-01, 4.9582639336585998535156250e-01, 3.6348867416381835937500000e-01, 2.7560311555862426757812500e-01, 9.2474079132080078125000000e-01, 3.8698923587799072265625000e-01, 4.9288088083267211914062500e-01, 2.5443810224533081054687500e-01, 8.8496649265289306640625000e-01, 3.8326346874237060546875000e-01, 2.9757472872734069824218750e-01, 7.1759498119354248046875000e-01, 1.9086994230747222900390625e-01, 1.1819262802600860595703125e-01, 8.3699780702590942382812500e-01, 7.4413591623306274414062500e-01, 5.9052056074142456054687500e-01, 2.4289157986640930175781250e-01, 6.2324714660644531250000000e-01, 6.3835531473159790039062500e-01, 3.2756945490837097167968750e-01, 6.7489340901374816894531250e-02, 8.8053858280181884765625000e-01, 4.5995673537254333496093750e-01, 7.6387274265289306640625000e-01, 2.5388860702514648437500000e-01, 5.9138715267181396484375000e-01, 4.2879515886306762695312500e-01, 3.8210064172744750976562500e-01, 1.2671338021755218505859375e-01, 2.4426665902137756347656250e-01, 7.9341582953929901123046875e-02, 3.0285829305648803710937500e-01, 7.4170482158660888671875000e-01, 6.1501574516296386718750000e-01, 6.7241108417510986328125000e-01, 8.3830794319510459899902344e-03, 6.7837697267532348632812500e-01, 5.0318068265914916992187500e-01, 2.3090845346450805664062500e-01, 1.7489650845527648925781250e-01, 1.8498297035694122314453125e-01, 8.4425997734069824218750000e-01, 9.8258978128433227539062500e-01, 9.1373962163925170898437500e-01, 3.4736943244934082031250000e-01, 7.8022456169128417968750000e-01, 5.4645460844039916992187500e-01, 8.1644237041473388671875000e-01, 4.8372694849967956542968750e-01, 5.8995127677917480468750000e-01, 7.8726345300674438476562500e-01, 1.0023464262485504150390625e-01, 5.3700709342956542968750000e-01, 3.6598333716392517089843750e-01, 6.0430681705474853515625000e-01, 9.5880252122879028320312500e-01, 3.9282295107841491699218750e-01, 3.9297300577163696289062500e-01, 7.9063701629638671875000000e-01, 6.4507842063903808593750000e-01, 3.9388400316238403320312500e-01, 6.8895506858825683593750000e-01, 4.0400162339210510253906250e-01, 1.3611315190792083740234375e-01, 4.5064327120780944824218750e-01, 3.3441939949989318847656250e-01, 2.1796892583370208740234375e-01, 9.2577481269836425781250000e-01, 6.8963938951492309570312500e-01, 5.9882086515426635742187500e-01, 7.4665749073028564453125000e-01, 5.4197108745574951171875000e-01, 7.0053309202194213867187500e-01, 9.3055981397628784179687500e-01, 8.6261671781539916992187500e-01, 1.6744185984134674072265625e-01, 2.6313900947570800781250000e-01, 7.1610279381275177001953125e-02, 9.7867280244827270507812500e-01, 2.3638409376144409179687500e-01, 6.6059833765029907226562500e-01, 8.9630700647830963134765625e-02, 2.1077093482017517089843750e-01, 5.0282436609268188476562500e-01, 1.0495366901159286499023438e-01, 3.8887339830398559570312500e-01, 5.3798770904541015625000000e-01, 3.3920419216156005859375000e-01, 5.5590021610260009765625000e-01, 5.3676831722259521484375000e-01, 3.9061048626899719238281250e-01, 6.9627010822296142578125000e-01, 6.7848247289657592773437500e-01, 6.8730312585830688476562500e-01, 5.6149125099182128906250000e-01, 3.5807991027832031250000000e-01, 6.1311233043670654296875000e-01, 9.3573623895645141601562500e-01, 5.9688854217529296875000000e-01, 9.7959017753601074218750000e-01, 4.4100663065910339355468750e-01, 7.3961198329925537109375000e-01, 3.7603877484798431396484375e-02, 7.6472663879394531250000000e-01, 5.1828157901763916015625000e-01, 5.3165331482887268066406250e-03, 2.7720010280609130859375000e-01, 5.3483223915100097656250000e-01, 7.6796287298202514648437500e-01, 5.3092595189809799194335938e-02, 5.4905343055725097656250000e-01, 8.0099457502365112304687500e-01});
pt::Tensor expected{1};
expected.setData({-0.0338877923786640167236328});
testModel(in, expected, "conv_3x3x3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_hard_sigmoid_2x2")
{
pt::Tensor in{2, 2, 1};
in.setData({0.905426323413848876953125, 0.654684364795684814453125, 0.169010102748870849609375, 0.0306607149541378021240234});
pt::Tensor expected{1};
expected.setData({-0.791795432567596435546875});
testModel(in, expected, "conv_hard_sigmoid_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_sigmoid_2x2")
{
pt::Tensor in{2, 2, 1};
in.setData({0.2015306949615478515625, 0.80272495746612548828125, 0.698147952556610107421875, 0.975408136844635009765625});
pt::Tensor expected{1};
expected.setData({0.3557874858379364013671875});
testModel(in, expected, "conv_sigmoid_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("conv_softplus_2x2")
{
pt::Tensor in{2, 2, 1};
in.setData({0.4323687851428985595703125, 0.3490321338176727294921875, 0.0568080730736255645751953, 0.86621654033660888671875});
pt::Tensor expected{1};
expected.setData({-0.534806311130523681640625});
testModel(in, expected, "conv_softplus_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_10x10")
{
pt::Tensor in{10};
in.setData({0.981756627559661865234375, 0.89302122592926025390625, 0.759348809719085693359375, 0.65112054347991943359375, 0.0396835021674633026123047, 0.8138763904571533203125, 0.76257312297821044921875, 0.4552824795246124267578125, 0.531826436519622802734375, 0.1093360707163810729980469});
pt::Tensor expected{1};
expected.setData({1.03432023525238037109375});
testModel(in, expected, "dense_10x10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_10x10x10")
{
pt::Tensor in{10};
in.setData({0.0164627600461244583129883, 0.2988002300262451171875, 0.540719568729400634765625, 0.8598835468292236328125, 0.1851143091917037963867188, 0.0835463479161262512207031, 0.0442722998559474945068359, 0.4438079893589019775390625, 0.0193187482655048370361328, 0.0670320466160774230957031});
pt::Tensor expected{10};
expected.setData({0.344859421253204345703125, 0.2116758525371551513671875, -0.0225683692842721939086914, -0.1440104693174362182617188, -0.508952081203460693359375, 0.6240634918212890625, -0.0159221328794956207275391, -0.0768641978502273559570312, -0.0123147666454315185546875, 0.2532834708690643310546875});
testModel(in, expected, "dense_10x10x10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_10x1")
{
pt::Tensor in{10};
in.setData({0.3967674672603607177734375, 0.538816750049591064453125, 0.419194519519805908203125, 0.6852195262908935546875, 0.2044522464275360107421875, 0.87811744213104248046875, 0.0273875929415225982666016, 0.67046749591827392578125, 0.417304813861846923828125, 0.5586898326873779296875});
pt::Tensor expected{1};
expected.setData({-0.261993467807769775390625});
testModel(in, expected, "dense_10x1", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_1x1")
{
pt::Tensor in{1};
in.setData({0});
pt::Tensor expected{1};
expected.setData({0.0010000000474974513053894});
testModel(in, expected, "dense_1x1", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_2x2")
{
pt::Tensor in{2};
in.setData({0.1021352335810661315917969, 0.2887178361415863037109375});
pt::Tensor expected{1};
expected.setData({-0.2430631071329116821289062});
testModel(in, expected, "dense_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_elu_10")
{
pt::Tensor in{10};
in.setData({0.85510146617889404296875, 0.354294240474700927734375, 0.202935755252838134765625, 0.2445918023586273193359375, 0.90927493572235107421875, 0.997471034526824951171875, 0.77172553539276123046875, 0.899363100528717041015625, 0.31200110912322998046875, 0.96787655353546142578125});
pt::Tensor expected{10};
expected.setData({-0.19017517566680908203125, 0.543975889682769775390625, 0.336832702159881591796875, -0.23501956462860107421875, -0.0582635402679443359375, 0.310488641262054443359375, 0.3066990375518798828125, 0.0385724008083343505859375, 0.1162182241678237915039062, -0.419916629791259765625});
testModel(in, expected, "dense_elu_10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_relu_10")
{
pt::Tensor in{10};
in.setData({0.90458285808563232421875, 0.525757491588592529296875, 0.545456469058990478515625, 0.2269996106624603271484375, 0.0464008301496505737304688, 0.1258080154657363891601562, 0.2151256948709487915039062, 0.87339341640472412109375, 0.988328635692596435546875, 0.0177662484347820281982422});
pt::Tensor expected{10};
expected.setData({0., 0., 0., 0., 0.2561261355876922607421875, 0.2268896251916885375976562, 0., 0., 0.4734426438808441162109375, 0.});
testModel(in, expected, "dense_relu_10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_softmax_10")
{
pt::Tensor in{10};
in.setData({0.649978220462799072265625, 0.521167278289794921875, 0.838553905487060546875, 0.595434367656707763671875, 0.3795023262500762939453125, 0.1367350518703460693359375, 0.264678776264190673828125, 0.714819252490997314453125, 0.2079916149377822875976562, 0.991008460521697998046875});
pt::Tensor expected{10};
expected.setData({0.09840869903564453125, 0.0998809412121772766113281, 0.0956929698586463928222656, 0.105160653591156005859375, 0.1033285632729530334472656, 0.1107452958822250366210938, 0.1020116060972213745117188, 0.0912913978099822998046875, 0.0934284552931785583496094, 0.1000513881444931030273438});
testModel(in, expected, "dense_softmax_10", 0.05f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_softsign_10")
{
pt::Tensor in{10};
in.setData({0.584470212459564208984375, 0.2321224212646484375, 0.2190520465373992919921875, 0.518506109714508056640625, 0.835415780544281005859375, 0.64477074146270751953125, 0.0941907390952110290527344, 0.1340683251619338989257812, 0.3903006017208099365234375, 0.31956470012664794921875});
pt::Tensor expected{10};
expected.setData({-0.2938684523105621337890625, 0.267052471637725830078125, -0.1034420058131217956542969, -0.0418793857097625732421875, 0.0386663377285003662109375, -0.0616704486310482025146484, -0.0576007217168807983398438, -0.0794550254940986633300781, -0.1759853512048721313476562, 0.0965514481067657470703125});
testModel(in, expected, "dense_softsign_10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("dense_tanh_10")
{
pt::Tensor in{10};
in.setData({0.3400935232639312744140625, 0.0400434583425521850585938, 0.3317507207393646240234375, 0.476161062717437744140625, 0.730400145053863525390625, 0.893628597259521484375, 0.0063090408220887184143066, 0.0767344608902931213378906, 0.281790554523468017578125, 0.53561890125274658203125});
pt::Tensor expected{10};
expected.setData({-0.2374965846538543701171875, 0.62592017650604248046875, 0.0064743058755993843078613, -0.0775135010480880737304688, -0.2924458980560302734375, -0.40268421173095703125, 0.2133004814386367797851562, 0.1799322813749313354492188, 0.2436474710702896118164062, -0.0390143170952796936035156});
testModel(in, expected, "dense_tanh_10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("elu_10")
{
pt::Tensor in{10};
in.setData({0.2785461246967315673828125, 0.5723898410797119140625, 0.3422894179821014404296875, 0.839160978794097900390625, 0.685912787914276123046875, 0.816127836704254150390625, 0.1542460620403289794921875, 0.18519365787506103515625, 0.54259479045867919921875, 0.0613982602953910827636719});
pt::Tensor expected{1};
expected.setData({0.3744644820690155029296875});
testModel(in, expected, "elu_10", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("embedding_64")
{
pt::Tensor in{10};
in.setData({9., 15., 64., 28., 89., 93., 29., 8., 73., 0.});
pt::Tensor expected{20};
expected.setData({0.48980510234832763671875, 0.53035342693328857421875, 0.4945769011974334716796875, 0.494939625263214111328125, 0.488186359405517578125, 0.4919061958789825439453125, 0.4907429516315460205078125, 0.4852416813373565673828125, 0.4880925118923187255859375, 0.48303282260894775390625, 0.500443637371063232421875, 0.4931590557098388671875, 0.50083243846893310546875, 0.5131962299346923828125, 0.4992016255855560302734375, 0.503284990787506103515625, 0.504206836223602294921875, 0.497098743915557861328125, 0.49933338165283203125, 0.4932071864604949951171875});
testModel(in, expected, "embedding_64", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("locally_connected_1d_2")
{
pt::Tensor in{2, 1};
in.setData({0.503065049648284912109375, 0.81314766407012939453125});
pt::Tensor expected{1};
expected.setData({-0.342222750186920166015625});
testModel(in, expected, "locally_connected_1d_2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("locally_connected_1d_3")
{
pt::Tensor in{3, 1};
in.setData({0.1436859667301177978515625, 0.375406324863433837890625, 0.2284090518951416015625});
pt::Tensor expected{1};
expected.setData({0.1469735950231552124023438});
testModel(in, expected, "locally_connected_1d_3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("locally_connected_1d_3x3")
{
pt::Tensor in{10, 3};
in.setData({0.9300920963287353515625, 0.0140936933457851409912109, 0.490953505039215087890625, 0.87187683582305908203125, 0.48404407501220703125, 0.2158186733722686767578125, 0.47817599773406982421875, 0.426302254199981689453125, 0.5113461017608642578125, 0.0887326896190643310546875, 0.2444936484098434448242188, 0.598401963710784912109375, 0.569395720958709716796875, 0.508082091808319091796875, 0.0134552307426929473876953, 0.729429543018341064453125, 0.365883171558380126953125, 0.306098043918609619140625, 0.0376210995018482208251953, 0.1370749175548553466796875, 0.326589286327362060546875, 0.9474995136260986328125, 0.77694404125213623046875, 0.967009484767913818359375, 0.579645097255706787109375, 0.6051523685455322265625, 0.594207227230072021484375, 0.9271087646484375, 0.1671096980571746826171875, 0.9759938716888427734375});
pt::Tensor expected{1};
expected.setData({-0.364341676235198974609375});
testModel(in, expected, "locally_connected_1d_3x3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("lstm_simple_7x20")
{
pt::Tensor in{7, 20};
in.setData({0.77604711055755615234375, 0.502734661102294921875, 0.79697692394256591796875, 0.5062305927276611328125, 0.624379336833953857421875, 0.2621957361698150634765625, 0.4473741352558135986328125, 0.0126458536833524703979492, 0.3816540241241455078125, 0.629140794277191162109375, 0.933698236942291259765625, 0.1708580106496810913085938, 0.26250934600830078125, 0.674819469451904296875, 0.4717605412006378173828125, 0.676877081394195556640625, 0.792997658252716064453125, 0.631852447986602783203125, 0.713566839694976806640625, 0.9470818042755126953125, 0.585941851139068603515625, 0.44031202793121337890625, 0.209411919116973876953125, 0.898428976535797119140625, 0.713931024074554443359375, 0.58001041412353515625, 0.893276751041412353515625, 0.4202254116535186767578125, 0.915704250335693359375, 0.501157701015472412109375, 0.0143186561763286590576172, 0.945484697818756103515625, 0.67281997203826904296875, 0.370414078235626220703125, 0.0833084434270858764648438, 0.1224179714918136596679688, 0.847868382930755615234375, 0.7276551723480224609375, 0.51167786121368408203125, 0.82317578792572021484375, 0.667232036590576171875, 0.887901008129119873046875, 0.6239817142486572265625, 0.33799421787261962890625, 0.1859485954046249389648438, 0.96130621433258056640625, 0.334712088108062744140625, 0.4669827520847320556640625, 0.82855594158172607421875, 0.925054013729095458984375, 0.817858755588531494140625, 0.4827382862567901611328125, 0.3141300976276397705078125, 0.64158332347869873046875, 0.854546070098876953125, 0.581469595432281494140625, 0.687639713287353515625, 0.87598407268524169921875, 0.866184771060943603515625, 0.1163715496659278869628906, 0.572642266750335693359375, 0.338202297687530517578125, 0.78757607936859130859375, 0.49182283878326416015625, 0.808832347393035888671875, 0.577226817607879638671875, 0.230351865291595458984375, 0.67715823650360107421875, 0.52363407611846923828125, 0.784836351871490478515625, 0.551260411739349365234375, 0.2906259596347808837890625, 0.839524745941162109375, 0.3255555927753448486328125, 0.344461023807525634765625, 0.8963718414306640625, 0.6560614109039306640625, 0.936554431915283203125, 0.61747729778289794921875, 0.7518503665924072265625, 0.25147259235382080078125, 0.2292697280645370483398438, 0.74137532711029052734375, 0.948574066162109375, 0.4193125069141387939453125, 0.3612006604671478271484375, 0.3678794205188751220703125, 0.738312065601348876953125, 0.678230762481689453125, 0.528170764446258544921875, 0.359158933162689208984375, 0.1737570017576217651367188, 0.4410741627216339111328125, 0.809292614459991455078125, 0.90793693065643310546875, 0.1585189253091812133789062, 0.3553042113780975341796875, 0.892034947872161865234375, 0.1869824826717376708984375, 0.343655109405517578125, 0.1933850497007369995117188, 0.66785919666290283203125, 0.969636857509613037109375, 0.3304079473018646240234375, 0.0401941277086734771728516, 0.534684360027313232421875, 0.963430881500244140625, 0.8028895854949951171875, 0.904604375362396240234375, 0.4597264826297760009765625, 0.2600003778934478759765625, 0.2661550343036651611328125, 0.4745777547359466552734375, 0.2155202329158782958984375, 0.8324134349822998046875, 0.1648609638214111328125, 0.36145031452178955078125, 0.895967781543731689453125, 0.779565513134002685546875, 0.845522463321685791015625, 0.935978829860687255859375, 0.875434458255767822265625, 0.71619141101837158203125, 0.459921419620513916015625, 0.0118281561881303787231445, 0.931029498577117919921875, 0.0847642645239830017089844, 0.9345576763153076171875, 0.845606029033660888671875, 0.961635410785675048828125, 0.2730428874492645263671875, 0.4852912724018096923828125, 0.0267027765512466430664062, 0.2817195355892181396484375, 0.0125404121354222297668457, 0.817105114459991455078125, 0.68533146381378173828125, 0.845399558544158935546875, 0.0374421402812004089355469, 0.2116106301546096801757812});
pt::Tensor expected{3};
expected.setData({0.4843051135540008544921875, 0.1730774194002151489257812, 0.255123615264892578125});
testModel(in, expected, "lstm_simple_7x20", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("lstm_simple_stacked_16x9")
{
pt::Tensor in{16, 9};
in.setData({0.64575898647308349609375, 0.383337497711181640625, 0.1302742809057235717773438, 0.15083110332489013671875, 0.64046585559844970703125, 0.9100341796875, 0.3236927688121795654296875, 0.038910925388336181640625, 0.0275685079395771026611328, 0.66156780719757080078125, 0.96627056598663330078125, 0.988777637481689453125, 0.917551338672637939453125, 0.65201270580291748046875, 0.77834308147430419921875, 0.3891467750072479248046875, 0.9353351593017578125, 0.761200249195098876953125, 0.98186576366424560546875, 0.399151861667633056640625, 0.371246755123138427734375, 0.91890132427215576171875, 0.2542273104190826416015625, 0.895512759685516357421875, 0.0238225683569908142089844, 0.1123721301555633544921875, 0.545802295207977294921875, 0.4304597079753875732421875, 0.62907350063323974609375, 0.310653984546661376953125, 0.713222503662109375, 0.429319918155670166015625, 0.54424488544464111328125, 0.501907885074615478515625, 0.0471078082919120788574219, 0.6382615566253662109375, 0.719657838344573974609375, 0.710867106914520263671875, 0.4272158443927764892578125, 0.91331386566162109375, 0.4560066163539886474609375, 0.659747600555419921875, 0.0496449656784534454345703, 0.0520663931965827941894531, 0.0532343164086341857910156, 0.507022678852081298828125, 0.082697451114654541015625, 0.696637928485870361328125, 0.336082935333251953125, 0.1141199991106986999511719, 0.1792574673891067504882812, 0.1314636021852493286132812, 0.9154026508331298828125, 0.762456953525543212890625, 0.392354905605316162109375, 0.880122125148773193359375, 0.0205543823540210723876953, 0.724988877773284912109375, 0.3110291659832000732421875, 0.771389544010162353515625, 0.2190356403589248657226562, 0.82090282440185546875, 0.127565085887908935546875, 0.213096916675567626953125, 0.7659208774566650390625, 0.556923449039459228515625, 0.397080004215240478515625, 0.568637430667877197265625, 0.2455865889787673950195312, 0.429382145404815673828125, 0.0270698294043540954589844, 0.60977184772491455078125, 0.501387059688568115234375, 0.611378252506256103515625, 0.150397777557373046875, 0.887344181537628173828125, 0.2887078225612640380859375, 0.88998377323150634765625, 0.334323883056640625, 0.67644679546356201171875, 0.1756747514009475708007812, 0.1602015197277069091796875, 0.67010891437530517578125, 0.2248647212982177734375, 0.77965486049652099609375, 0.177006185054779052734375, 0.974012911319732666015625, 0.260480225086212158203125, 0.1148127093911170959472656, 0.0849898904561996459960938, 0.749687016010284423828125, 0.5528202056884765625, 0.0635747611522674560546875, 0.75792980194091796875, 0.902856171131134033203125, 0.45365238189697265625, 0.930023372173309326171875, 0.481835663318634033203125, 0.934363782405853271484375, 0.519863128662109375, 0.746905863285064697265625, 0.3450016081333160400390625, 0.0504284314811229705810547, 0.501746654510498046875, 0.930025994777679443359375, 0.733194410800933837890625, 0.51011550426483154296875, 0.0657349377870559692382812, 0.473063647747039794921875, 0.575777113437652587890625, 0.870926082134246826171875, 0.998631060123443603515625, 0.0532954856753349304199219, 0.0399809218943119049072266, 0.75447714328765869140625, 0.969445288181304931640625, 0.2095160186290740966796875, 0.396088659763336181640625, 0.3480217158794403076171875, 0.68516099452972412109375, 0.3881748020648956298828125, 0.97596490383148193359375, 0.4785991013050079345703125, 0.5853793621063232421875, 0.92354679107666015625, 0.1025549024343490600585938, 0.846471965312957763671875, 0.281562626361846923828125, 0.938155710697174072265625, 0.936697423458099365234375, 0.2974614202976226806640625, 0.9090516567230224609375, 0.551161348819732666015625, 0.50449049472808837890625, 0.59450709819793701171875, 0.773995339870452880859375, 0.584374010562896728515625, 0.4048392474651336669921875, 0.35768902301788330078125, 0.879763901233673095703125, 0.509668767452239990234375, 0.82909190654754638671875, 0.61640584468841552734375, 0.897717773914337158203125});
pt::Tensor expected{1};
expected.setData({-0.16028654575347900390625});
testModel(in, expected, "lstm_simple_stacked_16x9", 1e-6f);
}
This diff is collapsed.
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("maxpool2d_1x1")
{
pt::Tensor in{10, 10, 1};
in.setData({0.0753422081470489501953125, 0.409344613552093505859375, 0.431325852870941162109375, 0.502009689807891845703125, 0.4919537007808685302734375, 0.92769658565521240234375, 0.819257259368896484375, 0.73051273822784423828125, 0.989149510860443115234375, 0.114930331707000732421875, 0.787515342235565185546875, 0.1984435766935348510742188, 0.2464736998081207275390625, 0.79664981365203857421875, 0.2808656990528106689453125, 0.877683162689208984375, 0.1895147114992141723632812, 0.33673095703125, 0.2059897929430007934570312, 0.833779871463775634765625, 0.823937952518463134765625, 0.093955218791961669921875, 0.351197898387908935546875, 0.6221024990081787109375, 0.2491012960672378540039062, 0.660402119159698486328125, 0.7088534832000732421875, 0.2363186925649642944335938, 0.652367532253265380859375, 0.1764048188924789428710938, 0.86739289760589599609375, 0.910991370677947998046875, 0.950450479984283447265625, 0.1947626173496246337890625, 0.32806682586669921875, 0.7252483367919921875, 0.978951513767242431640625, 0.744076192378997802734375, 0.31503021717071533203125, 0.592214286327362060546875, 0.82989215850830078125, 0.0247455108910799026489258, 0.2904744446277618408203125, 0.6248462200164794921875, 0.8968126773834228515625, 0.883037269115447998046875, 0.9941737651824951171875, 0.6184003353118896484375, 0.3066659867763519287109375, 0.4081782996654510498046875, 0.87936115264892578125, 0.789196074008941650390625, 0.288653433322906494140625, 0.904392778873443603515625, 0.725762426853179931640625, 0.1177000552415847778320312, 0.6212365627288818359375, 0.0813542231917381286621094, 0.0094328671693801879882812, 0.839466035366058349609375, 0.3402269780635833740234375, 0.213514506816864013671875, 0.1262919902801513671875, 0.732601344585418701171875, 0.557285487651824951171875, 0.84855329990386962890625, 0.490334928035736083984375, 0.63133418560028076171875, 0.715953409671783447265625, 0.631515443325042724609375, 0.472766697406768798828125, 0.548897564411163330078125, 0.5639994144439697265625, 0.14799487590789794921875, 0.547957479953765869140625, 0.530192553997039794921875, 0.430702984333038330078125, 0.1603884994983673095703125, 0.748552739620208740234375, 0.556192874908447265625, 0.621075689792633056640625, 0.980506122112274169921875, 0.480078518390655517578125, 0.91253650188446044921875, 0.0638639554381370544433594, 0.2474694401025772094726562, 0.4770964682102203369140625, 0.44034230709075927734375, 0.56501400470733642578125, 0.955874979496002197265625, 0.1284673064947128295898438, 0.578122556209564208984375, 0.883075296878814697265625, 0.1813618391752243041992188, 0.3191959857940673828125, 0.2591410577297210693359375, 0.2800604403018951416015625, 0.684739530086517333984375, 0.851892292499542236328125, 0.0326652675867080688476562});
pt::Tensor expected{1};
expected.setData({-0.4680449664592742919921875});
testModel(in, expected, "maxpool2d_1x1", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("maxpool2d_2x2")
{
pt::Tensor in{10, 10, 1};
in.setData({0.4298061430454254150390625, 0.267910420894622802734375, 0.820120990276336669921875, 0.1156655400991439819335938, 0.432233989238739013671875, 0.992304265499114990234375, 0.25962173938751220703125, 0.339542865753173828125, 0.865780889987945556640625, 0.82413828372955322265625, 0.886872947216033935546875, 0.466906726360321044921875, 0.834762513637542724609375, 0.0719329267740249633789062, 0.475865840911865234375, 0.002833577804267406463623, 0.40977954864501953125, 0.4737206995487213134765625, 0.0659865289926528930664062, 0.0973161607980728149414062, 0.0784006938338279724121094, 0.97057306766510009765625, 0.1231223195791244506835938, 0.541754186153411865234375, 0.700685799121856689453125, 0.597954928874969482421875, 0.989486396312713623046875, 0.949464499950408935546875, 0.910548508167266845703125, 0.0356878750026226043701172, 0.70931303501129150390625, 0.672420561313629150390625, 0.2350428104400634765625, 0.65059196949005126953125, 0.262409985065460205078125, 0.1435728967189788818359375, 0.894674241542816162109375, 0.2114084064960479736328125, 0.392984092235565185546875, 0.991770446300506591796875, 0.713120758533477783203125, 0.2034616768360137939453125, 0.751537859439849853515625, 0.3812907636165618896484375, 0.3106909692287445068359375, 0.392523288726806640625, 0.3061271607875823974609375, 0.3765228092670440673828125, 0.66361916065216064453125, 0.91420042514801025390625, 0.2673315703868865966796875, 0.6237766742706298828125, 0.850565612316131591796875, 0.0060691847465932369232178, 0.0403724014759063720703125, 0.3538057506084442138671875, 0.915556371212005615234375, 0.644087135791778564453125, 0.543508052825927734375, 0.901999950408935546875, 0.9954998493194580078125, 0.0201099906116724014282227, 0.557692468166351318359375, 0.1586275547742843627929688, 0.251859366893768310546875, 0.2263259142637252807617188, 0.3199290335178375244140625, 0.1624176055192947387695312, 0.973954677581787109375, 0.933327138423919677734375, 0.945683538913726806640625, 0.2479251325130462646484375, 0.682126581668853759765625, 0.6003711223602294921875, 0.0610139183700084686279297, 0.66429054737091064453125, 0.582245290279388427734375, 0.8458449840545654296875, 0.0701740905642509460449219, 0.69491326808929443359375, 0.0183642953634262084960938, 0.94856250286102294921875, 0.731121003627777099609375, 0.464286267757415771484375, 0.0205891225486993789672852, 0.1427060216665267944335938, 0.892523944377899169921875, 0.846938610076904296875, 0.4513817727565765380859375, 0.929361879825592041015625, 0.2064592093229293823242188, 0.0248511508107185363769531, 0.78784310817718505859375, 0.1708527058362960815429688, 0.63543069362640380859375, 0.539702236652374267578125, 0.1081636324524879455566406, 0.6827747821807861328125, 0.1381826549768447875976562, 0.6302654743194580078125});
pt::Tensor expected{1};
expected.setData({0.2290221750736236572265625});
testModel(in, expected, "maxpool2d_2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("maxpool2d_3x2x2")
{
pt::Tensor in{10, 10, 3};
in.setData({0.83625447750091552734375, 0.68194663524627685546875, 0.0367236845195293426513672, 0.0452700369060039520263672, 0.538085162639617919921875, 0.1414168775081634521484375, 0.70723259449005126953125, 0.247445583343505859375, 0.43996036052703857421875, 0.6202905178070068359375, 0.972737371921539306640625, 0.1970058828592300415039062, 0.911839067935943603515625, 0.3507750928401947021484375, 0.1619241237640380859375, 0.4208635389804840087890625, 0.841479003429412841796875, 0.0437861755490303039550781, 0.136971294879913330078125, 0.58993995189666748046875, 0.408580124378204345703125, 0.478278100490570068359375, 0.8220539093017578125, 0.1672715693712234497070312, 0.3220224082469940185546875, 0.2055091112852096557617188, 0.0993228852748870849609375, 0.5243551731109619140625, 0.2125722467899322509765625, 0.9043767452239990234375, 0.046030700206756591796875, 0.897274494171142578125, 0.587734699249267578125, 0.8615968227386474609375, 0.0291704311966896057128906, 0.33301067352294921875, 0.501110136508941650390625, 0.2171118110418319702148438, 0.422596454620361328125, 0.0295326858758926391601562, 0.587184250354766845703125, 0.929733335971832275390625, 0.0758083984255790710449219, 0.84182322025299072265625, 0.74777996540069580078125, 0.2299861013889312744140625, 0.518117725849151611328125, 0.313758432865142822265625, 0.61578619480133056640625, 0.2131729871034622192382812, 0.435888469219207763671875, 0.789075195789337158203125, 0.4664677083492279052734375, 0.673554897308349609375, 0.8848364353179931640625, 0.938138425350189208984375, 0.9847376346588134765625, 0.883556902408599853515625, 0.2435801178216934204101562, 0.4083047211170196533203125, 0.37480580806732177734375, 0.15222871303558349609375, 0.0704558640718460083007812, 0.295743525028228759765625, 0.8599617481231689453125, 0.0389834158122539520263672, 0.2154657840728759765625, 0.346547782421112060546875, 0.648159921169281005859375, 0.563166439533233642578125, 0.796182930469512939453125, 0.68696367740631103515625, 0.889503538608551025390625, 0.4869019687175750732421875, 0.53592002391815185546875, 0.837646186351776123046875, 0.0056931758299469947814941, 0.2425713092088699340820312, 0.2215069681406021118164062, 0.561546266078948974609375, 0.717612326145172119140625, 0.2524950206279754638671875, 0.506020963191986083984375, 0.73927009105682373046875, 0.722302258014678955078125, 0.4683122932910919189453125, 0.70619356632232666015625, 0.5590665340423583984375, 0.0784107968211174011230469, 0.95280361175537109375, 0.975654184818267822265625, 0.1620139628648757934570312, 0.4178269207477569580078125, 0.619590699672698974609375, 0.56812012195587158203125, 0.37473189830780029296875, 0.9035546779632568359375, 0.67718029022216796875, 0.11262929439544677734375, 0.66956341266632080078125, 0.21799075603485107421875, 0.0860946550965309143066406, 0.3599322140216827392578125, 0.0496072880923748016357422, 0.1466163694858551025390625, 0.453066170215606689453125, 0.983202397823333740234375, 0.841867387294769287109375, 0.0132049582898616790771484, 0.86889445781707763671875, 0.283414661884307861328125, 0.1976378113031387329101562, 0.3096328675746917724609375, 0.529233992099761962890625, 0.4826852381229400634765625, 0.629871785640716552734375, 0.1667711287736892700195312, 0.37429583072662353515625, 0.58248770236968994140625, 0.81078159809112548828125, 0.368445575237274169921875, 0.83938229084014892578125, 0.41680920124053955078125, 0.94248807430267333984375, 0.2963627278804779052734375, 0.3686025440692901611328125, 0.652730047702789306640625, 0.583416044712066650390625, 0.3541697561740875244140625, 0.48430538177490234375, 0.664321243762969970703125, 0.0563397258520126342773438, 0.60640239715576171875, 0.746782779693603515625, 0.79397046566009521484375, 0.21378421783447265625, 0.64110505580902099609375, 0.731134712696075439453125, 0.0950619876384735107421875, 0.0700729265809059143066406, 0.88595497608184814453125, 0.3613245189189910888671875, 0.703432142734527587890625, 0.56014788150787353515625, 0.3377464115619659423828125, 0.345652759075164794921875, 0.90546262264251708984375, 0.4534831345081329345703125, 0.4825298786163330078125, 0.979146659374237060546875, 0.4116890430450439453125, 0.369446694850921630859375, 0.07996308803558349609375, 0.387782394886016845703125, 0.1779314577579498291015625, 0.1313418000936508178710938, 0.3676736354827880859375, 0.15881001949310302734375, 0.307563483715057373046875, 0.687978923320770263671875, 0.83844006061553955078125, 0.304822504520416259765625, 0.3530977070331573486328125, 0.73064136505126953125, 0.777832686901092529296875, 0.1770310550928115844726562, 0.4017564356327056884765625, 0.0029414433520287275314331, 0.400597095489501953125, 0.893202483654022216796875, 0.0574633851647377014160156, 0.389629542827606201171875, 0.265343964099884033203125, 0.0367766246199607849121094, 0.400503575801849365234375, 0.2378086596727371215820312, 0.8309695720672607421875, 0.64362537860870361328125, 0.4765686094760894775390625, 0.708806693553924560546875, 0.0993836149573326110839844, 0.756978213787078857421875, 0.2985921204090118408203125, 0.502773702144622802734375, 0.094177663326263427734375, 0.814555466175079345703125, 0.5104668140411376953125, 0.4419709146022796630859375, 0.1348915249109268188476562, 0.634875595569610595703125, 0.3523098528385162353515625, 0.68270885944366455078125, 0.762457072734832763671875, 0.006747811101377010345459, 0.25905954837799072265625, 0.677914142608642578125, 0.3360998630523681640625, 0.750125408172607421875, 0.556978285312652587890625, 0.85824024677276611328125, 0.570581972599029541015625, 0.889399230480194091796875, 0.2274785786867141723632812, 0.7939798831939697265625, 0.0339466184377670288085938, 0.0772672668099403381347656, 0.3959024846553802490234375, 0.185766696929931640625, 0.944193363189697265625, 0.77968347072601318359375, 0.74366557598114013671875, 0.4919978082180023193359375, 0.4900485575199127197265625, 0.581110656261444091796875, 0.596626341342926025390625, 0.89802634716033935546875, 0.1208346858620643615722656, 0.50961410999298095703125, 0.995522022247314453125, 0.481429517269134521484375, 0.83781278133392333984375, 0.60365545749664306640625, 0.66437494754791259765625, 0.2724613845348358154296875, 0.830933272838592529296875, 0.2444662898778915405273438, 0.673362433910369873046875, 0.0881300717592239379882812, 0.0188520457595586776733398, 0.4723462164402008056640625, 0.9389951229095458984375, 0.325574815273284912109375, 0.322153031826019287109375, 0.0520307235419750213623047, 0.6752855777740478515625, 0.721740663051605224609375, 0.9037177562713623046875, 0.4371486008167266845703125, 0.1095166653394699096679688, 0.0376070588827133178710938, 0.88076889514923095703125, 0.65225565433502197265625, 0.915496766567230224609375, 0.8805968761444091796875, 0.47024059295654296875, 0.67034041881561279296875, 0.745065867900848388671875, 0.4222121536731719970703125, 0.153917968273162841796875, 0.2840826213359832763671875, 0.548477113246917724609375, 0.255735874176025390625, 0.891734778881072998046875, 0.58075034618377685546875, 0.71867358684539794921875, 0.862031042575836181640625, 0.8965628147125244140625, 0.957609236240386962890625, 0.627508342266082763671875, 0.998980581760406494140625, 0.790507376194000244140625, 0.2708241045475006103515625, 0.990550518035888671875, 0.801505625247955322265625, 0.25311481952667236328125, 0.0318972617387771606445312, 0.952809810638427734375, 0.556832015514373779296875, 0.55270993709564208984375, 0.0473778247833251953125, 0.6390383243560791015625, 0.500103652477264404296875, 0.80429494380950927734375, 0.0695497170090675354003906, 0.562931001186370849609375, 0.408680140972137451171875, 0.551768720149993896484375, 0.3584634363651275634765625, 0.99937534332275390625, 0.4503238499164581298828125, 0.345823705196380615234375, 0.1897256076335906982421875, 0.923527657985687255859375, 0.1042940989136695861816406, 0.44034373760223388671875, 0.686200559139251708984375, 0.1424055546522140502929688, 0.931496202945709228515625, 0.0588748939335346221923828, 0.2180996239185333251953125, 0.07719528675079345703125, 0.411511898040771484375, 0.59725856781005859375, 0.7311418056488037109375, 0.878433287143707275390625, 0.353248417377471923828125, 0.702462732791900634765625, 0.0486163757741451263427734, 0.819261848926544189453125, 0.318275630474090576171875});
pt::Tensor expected{1};
expected.setData({-0.1397954374551773071289062});
testModel(in, expected, "maxpool2d_3x2x2", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("maxpool2d_3x3x3")
{
pt::Tensor in{10, 10, 3};
in.setData({0.3389245569705963134765625, 0.4451471865177154541015625, 0.9948546886444091796875, 0.0169642344117164611816406, 0.9125983715057373046875, 0.1300487667322158813476562, 0.9880783557891845703125, 0.633976161479949951171875, 0.443205416202545166015625, 0.9152429103851318359375, 0.840493679046630859375, 0.933788359165191650390625, 0.1418153345584869384765625, 0.42622029781341552734375, 0.9545733928680419921875, 0.5910317897796630859375, 0.974536120891571044921875, 0.677998840808868408203125, 0.3380587100982666015625, 0.6233346462249755859375, 0.301854550838470458984375, 0.596590459346771240234375, 0.4333460628986358642578125, 0.5788447856903076171875, 0.41996085643768310546875, 0.851961910724639892578125, 0.932804882526397705078125, 0.3623872101306915283203125, 0.615225732326507568359375, 0.1119891032576560974121094, 0.2226362675428390502929688, 0.4302918612957000732421875, 0.82280647754669189453125, 0.41947209835052490234375, 0.4885040819644927978515625, 0.6622600555419921875, 0.7230007648468017578125, 0.2169137448072433471679688, 0.99901473522186279296875, 0.544434010982513427734375, 0.72481358051300048828125, 0.2473344355821609497070312, 0.778361499309539794921875, 0.90263164043426513671875, 0.0360757932066917419433594, 0.823361873626708984375, 0.994200050830841064453125, 0.2245205789804458618164062, 0.792834103107452392578125, 0.97394847869873046875, 0.0012194341979920864105225, 0.570799887180328369140625, 0.0804328694939613342285156, 0.520123779773712158203125, 0.718427360057830810546875, 0.91710865497589111328125, 0.748912632465362548828125, 0.3128435313701629638671875, 0.0073842317797243595123291, 0.943546593189239501953125, 0.39255368709564208984375, 0.2377538979053497314453125, 0.1635574996471405029296875, 0.6171734333038330078125, 0.982062995433807373046875, 0.621438682079315185546875, 0.843899190425872802734375, 0.550468742847442626953125, 0.309516251087188720703125, 0.4826212227344512939453125, 0.836553275585174560546875, 0.64696824550628662109375, 0.3718632757663726806640625, 0.1463806182146072387695312, 0.593549251556396484375, 0.6875026226043701171875, 0.1250308603048324584960938, 0.615675747394561767578125, 0.565389215946197509765625, 0.784478604793548583984375, 0.576113522052764892578125, 0.302448570728302001953125, 0.3478036820888519287109375, 0.1075662523508071899414062, 0.73356163501739501953125, 0.5315687656402587890625, 0.540769636631011962890625, 0.23902416229248046875, 0.9486200809478759765625, 0.3394381701946258544921875, 0.7978909015655517578125, 0.614687621593475341796875, 0.842471301555633544921875, 0.0705909952521324157714844, 0.56917667388916015625, 0.65845477581024169921875, 0.1393326073884963989257812, 0.7696502208709716796875, 0.922172963619232177734375, 0.707864463329315185546875, 0.1038720980286598205566406, 0.73642098903656005859375, 0.8263461589813232421875, 0.97510325908660888671875, 0.9716265201568603515625, 0.8949606418609619140625, 0.34766161441802978515625, 0.631521284580230712890625, 0.223631918430328369140625, 0.847643554210662841796875, 0.24626767635345458984375, 0.99662685394287109375, 0.0239762887358665466308594, 0.1025498434901237487792969, 0.665187895298004150390625, 0.500392735004425048828125, 0.4482557773590087890625, 0.28036749362945556640625, 0.742847025394439697265625, 0.6417582035064697265625, 0.273814260959625244140625, 0.0379142872989177703857422, 0.964793980121612548828125, 0.930388271808624267578125, 0.212930500507354736328125, 0.74592173099517822265625, 0.9165246486663818359375, 0.8668863773345947265625, 0.373043477535247802734375, 0.2435576766729354858398438, 0.6547157764434814453125, 0.264351069927215576171875, 0.9828433990478515625, 0.599195659160614013671875, 0.4539886415004730224609375, 0.2563515603542327880859375, 0.78571546077728271484375, 0.1137231066823005676269531, 0.2888796627521514892578125, 0.3091209828853607177734375, 0.63150775432586669921875, 0.750451743602752685546875, 0.27949047088623046875, 0.988534152507781982421875, 0.219202935695648193359375, 0.4212698042392730712890625, 0.2657389938831329345703125, 0.0760896131396293640136719, 0.76781046390533447265625, 0.82511031627655029296875, 0.2466234266757965087890625, 0.6483328342437744140625, 0.337375223636627197265625, 0.56344926357269287109375, 0.3387925326824188232421875, 0.650762140750885009765625, 0.9793379306793212890625, 0.674113929271697998046875, 0.0589936338365077972412109, 0.755550324916839599609375, 0.716695845127105712890625, 0.664292752742767333984375, 0.6311690807342529296875, 0.8185536861419677734375, 0.4961495101451873779296875, 0.628004491329193115234375, 0.1491140872240066528320312, 0.2235013097524642944335938, 0.7357456684112548828125, 0.2768529951572418212890625, 0.49105417728424072265625, 0.234895765781402587890625, 0.4419662654399871826171875, 0.4259884655475616455078125, 0.364991664886474609375, 0.2548414766788482666015625, 0.931163311004638671875, 0.42839205265045166015625, 0.0761677175760269165039062, 0.428421914577484130859375, 0.0897867456078529357910156, 0.713721215724945068359375, 0.4840349256992340087890625, 0.282853186130523681640625, 0.722888410091400146484375, 0.2881093919277191162109375, 0.1617427766323089599609375, 0.853032052516937255859375, 0.2204698175191879272460938, 0.855088531970977783203125, 0.5425808429718017578125, 0.516851961612701416015625, 0.040804803371429443359375, 0.3255311548709869384765625, 0.3416797220706939697265625, 0.66328847408294677734375, 0.3750393688678741455078125, 0.1273648440837860107421875, 0.440107285976409912109375, 0.7382829189300537109375, 0.696132659912109375, 0.2803621590137481689453125, 0.973221004009246826171875, 0.699633657932281494140625, 0.153538525104522705078125, 0.2402707636356353759765625, 0.6541898250579833984375, 0.65156137943267822265625, 0.465292632579803466796875, 0.8268506526947021484375, 0.629139125347137451171875, 0.444154083728790283203125, 0.327201902866363525390625, 0.57995831966400146484375, 0.368961811065673828125, 0.275981366634368896484375, 0.782277047634124755859375, 0.418948471546173095703125, 0.126708209514617919921875, 0.870581686496734619140625, 0.739233672618865966796875, 0.364491403102874755859375, 0.617190659046173095703125, 0.77883994579315185546875, 0.814975917339324951171875, 0.64077460765838623046875, 0.006819992326200008392334, 0.594517409801483154296875, 0.546923339366912841796875, 0.1694936454296112060546875, 0.0647260472178459167480469, 0.0419523604214191436767578, 0.805045425891876220703125, 0.46508419513702392578125, 0.545243442058563232421875, 0.589411258697509765625, 0.3886974751949310302734375, 0.80396497249603271484375, 0.765328466892242431640625, 0.126132190227508544921875, 0.845899641513824462890625, 0.951814591884613037109375, 0.656448781490325927734375, 0.7083189487457275390625, 0.55408895015716552734375, 0.515744388103485107421875, 0.2566992342472076416015625, 0.57766377925872802734375, 0.288684189319610595703125, 0.700311124324798583984375, 0.0721274167299270629882812, 0.66245782375335693359375, 0.502117693424224853515625, 0.554650962352752685546875, 0.602534353733062744140625, 0.5389392375946044921875, 0.58570301532745361328125, 0.970651447772979736328125, 0.879505336284637451171875, 0.706097900867462158203125, 0.5079839229583740234375, 0.378069400787353515625, 0.8154239654541015625, 0.943870365619659423828125, 0.5159466266632080078125, 0.0310147609561681747436523, 0.2306170016527175903320312, 0.26788580417633056640625, 0.0907748863101005554199219, 0.0168376825749874114990234, 0.3745680153369903564453125, 0.441812336444854736328125, 0.66469275951385498046875, 0.4777710139751434326171875, 0.947283923625946044921875, 0.705118834972381591796875, 0.510589540004730224609375, 0.83609676361083984375, 0.2104687988758087158203125, 0.92905962467193603515625, 0.78185546398162841796875, 0.93453311920166015625, 0.4511300623416900634765625, 0.0637614354491233825683594, 0.712985932826995849609375, 0.7302753925323486328125, 0.545219957828521728515625, 0.70553743839263916015625, 0.2003474980592727661132812, 0.2921848595142364501953125, 0.9309999942779541015625, 0.1146247610449790954589844, 0.0017495586071163415908813, 0.584005415439605712890625, 0.9341905117034912109375, 0.395506680011749267578125, 0.5119812488555908203125, 0.733904302120208740234375, 0.70747661590576171875, 0.2397723942995071411132812});
pt::Tensor expected{1};
expected.setData({-0.1294306218624114990234375});
testModel(in, expected, "maxpool2d_3x3x3", 1e-6f);
}
/* Autogenerated file, DO NOT EDIT */
#include "test_util.h"
TEST_CASE("relu_10")
{
pt::Tensor in{10};
in.setData({0.3244543373584747314453125, 0.2298531830310821533203125, 0.0046867397613823413848877, 0.68707334995269775390625, 0.752781212329864501953125, 0.33828341960906982421875, 0.469803631305694580078125, 0.797382295131683349609375, 0.64746773242950439453125, 0.0229781717061996459960938});
pt::Tensor expected{10};
expected.setData({0.1355530321598052978515625, 0.7973029613494873046875, 0.594876766204833984375, 0., 0., 0.4682963788509368896484375, 0.196147263050079345703125, 0., 0.20699250698089599609375, 0.89708673954010009765625});
testModel(in, expected, "relu_10", 1e-6f);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment