forked from jiuyuan/InfiniTensor
update test
This commit is contained in:
parent
c774c9182d
commit
ee6dd3deac
|
@ -56,7 +56,7 @@ TEST(BANG_Codegen, run) {
|
||||||
auto temp3 = sqrt->getOutput();
|
auto temp3 = sqrt->getOutput();
|
||||||
auto mul = g->addOp<MulObj>(d, temp3, nullptr);
|
auto mul = g->addOp<MulObj>(d, temp3, nullptr);
|
||||||
auto temp4 = mul->getOutput();
|
auto temp4 = mul->getOutput();
|
||||||
auto softmax = g->addOp<SigmoidObj>(temp4, nullptr, 0);
|
auto softmax = g->addOp<SigmoidObj>(temp4, nullptr);
|
||||||
|
|
||||||
// allocate BANG memory
|
// allocate BANG memory
|
||||||
g->dataMalloc();
|
g->dataMalloc();
|
||||||
|
|
|
@ -57,7 +57,7 @@ TEST(CUDA_Codegen, run) {
|
||||||
auto temp3 = sqrt->getOutput();
|
auto temp3 = sqrt->getOutput();
|
||||||
auto mul = g->addOp<MulObj>(d, temp3, nullptr);
|
auto mul = g->addOp<MulObj>(d, temp3, nullptr);
|
||||||
auto temp4 = mul->getOutput();
|
auto temp4 = mul->getOutput();
|
||||||
auto softmax = g->addOp<SigmoidObj>(temp4, nullptr, 0);
|
auto softmax = g->addOp<SigmoidObj>(temp4, nullptr);
|
||||||
|
|
||||||
// allocate CUDA memory
|
// allocate CUDA memory
|
||||||
g->dataMalloc();
|
g->dataMalloc();
|
||||||
|
|
Loading…
Reference in New Issue