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

[Profiler] fix todo for profiler #672

Merged
merged 1 commit into from
Sep 2, 2022
Merged
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
6 changes: 2 additions & 4 deletions fleetx/core/engine/eager_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from paddle.distributed.sharding import group_sharded_parallel
from paddle.fluid.dygraph.parallel import sync_params_buffers
from paddle.distributed.fleet.utils.hybrid_parallel_util import fused_allreduce_gradients
from paddle.profiler import SummaryView

sys.path.append("../../../")
from fleetx.utils import logger
Expand Down Expand Up @@ -222,8 +223,7 @@ def configure_optimizers(self):
scheduler=scheduler,
on_trace_ready=paddle.profiler.export_chrome_tracing(
profiler_log),
#TODO(kzq) uncomment after bugfix
#record_shapes=record_shapes,
record_shapes=record_shapes,
profile_memory=profile_memory)
self.profiler.start()
logger.warning(
Expand Down Expand Up @@ -602,8 +602,6 @@ def inference(self, data):
return self._inference_engine.predict(data)

def _print_summary(self):
#TODO(kzq) move above
from paddle.profiler import SummaryView
views_dict = {
SummaryView.DeviceView: 'device',
SummaryView.OverView: 'overview',
Expand Down