Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Enable Some Tests Which Were Disabled Wrongly #1197

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 2 additions & 9 deletions cinn/frontend/net_builder_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ TEST(net_build, program_execute_reverse) {
runtime_program->Execute();
}

/*
TEST(net_build, program_execute_clip) {
const int M = 4;
const int N = 3;
Expand All @@ -243,18 +242,14 @@ TEST(net_build, program_execute_clip) {

NetBuilder builder("net_builder");
Placeholder input = builder.CreateInput(Float(32), {M, N, K}, "In");
//Variable output = builder.Clip({input}, max_val, min_val);
auto max_val_ = builder.FillConstant({M, N, K}, max_val, common::UniqName("constant"));
auto min_val_ = builder.FillConstant({M, N, K}, min_val, common::UniqName("constant"));
auto output_0 = builder.Min(input, max_val_);
auto output = builder.Max(output_0, min_val_);
Variable output = builder.Clip({input}, max_val, min_val);
auto program = builder.Build();

Target target = common::DefaultNVGPUTarget();
std::unordered_set<std::string> fetch_ids;
auto graph = Optimize(&program, fetch_ids, target);

LOG(INFO) <<graph->Visualize();
LOG(INFO) << graph->Visualize();
auto scope = BuildScope(target, graph);
hlir::framework::GraphCompiler gc(target, scope, graph);
auto runtime_program = gc.Build();
Expand Down Expand Up @@ -495,7 +490,6 @@ TEST(net_build, program_execute_scatter) {
}
}


TEST(net_build, program_execute_scatter_nd) {
const float default_value = 3.14;
const int B = 3;
Expand Down Expand Up @@ -1641,7 +1635,6 @@ TEST(net_build, program_execute_one_hot) {
}
}
}
*/

} // namespace frontend
} // namespace cinn