Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Hackathon 6th Fundable Projects 3 No.202、295、366、354、376、310-313、315、273、95-96、114、374、205、237、391-392、248-251、177-178、81】 #63501

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
36 changes: 1 addition & 35 deletions paddle/fluid/framework/naive_executor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@
#ifdef PADDLE_WITH_NVTX
#include "paddle/fluid/platform/device/gpu/cuda/cuda_profiler.h"
#endif
#ifdef PADDLE_WITH_LITE
#include "paddle/fluid/operators/lite/lite_engine_op.h"
#endif

namespace paddle {
namespace framework {
Expand Down Expand Up @@ -334,38 +331,7 @@ void NaiveExecutor::ResetTrtOps(int num) {
#endif
}

void NaiveExecutor::CloneLiteEngine(int num, void *stream) {
#ifdef PADDLE_WITH_LITE
for (auto &op : ops_) {
if (op->Type() == "lite_engine") {
operators::LiteEngineOp *lite_op =
dynamic_cast<operators::LiteEngineOp *>(op.get());
PADDLE_ENFORCE_NOT_NULL(
lite_op,
phi::errors::InvalidArgument(
"lite_op(type: lite_engine) should be created."));
std::string engine_key = lite_op->Attr<std::string>("engine_key");
std::string new_engine_key = engine_key + "_" + std::to_string(num);
PADDLE_ENFORCE(
paddle::inference::Singleton<inference::lite::EngineManager>::Global()
.Has(engine_key),
phi::errors::InvalidArgument(
"lite_engine(key: %s) should be created.", engine_key));
auto *lite_engine =
paddle::inference::Singleton<inference::lite::EngineManager>::Global()
.Get(engine_key);
auto new_lite_engine = lite_engine->Clone();
#ifdef LITE_SUBGRAPH_WITH_XPU
new_lite_engine->SetStream(TARGET(kXPU), stream);
#endif
paddle::inference::Singleton<inference::lite::EngineManager>::Global()
.Set(new_engine_key, new_lite_engine);
lite_op->SetAttr("engine_key", new_engine_key);
lite_op->SetEngine(new_lite_engine.get());
}
}
#endif
}
void NaiveExecutor::CloneLiteEngine(int num, void *stream) {}

} // namespace framework
} // namespace paddle
5 changes: 0 additions & 5 deletions paddle/fluid/operators/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ add_subdirectory(controlflow)
add_subdirectory(detection)
add_subdirectory(elementwise)
add_subdirectory(fused)
add_subdirectory(metrics)
add_subdirectory(optimizers)
add_subdirectory(reduce_ops)
add_subdirectory(sequence_ops)
Expand Down Expand Up @@ -49,10 +48,6 @@ if (WITH_DLNNE)
add_subdirectory(dlnne)
endif()

if (WITH_LITE)
add_subdirectory(lite)
endif()

if(WITH_CINN)
add_subdirectory(cinn)
endif()
Expand Down
133 changes: 0 additions & 133 deletions paddle/fluid/operators/ctc_align_op.cc

This file was deleted.

171 changes: 0 additions & 171 deletions paddle/fluid/operators/ctc_align_op.cu

This file was deleted.

Loading