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

Move profiler plugin functions to a separate pybind11 module #947

Open
wants to merge 1 commit into
base: master
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
8 changes: 4 additions & 4 deletions plugin/tensorboard_plugin_profile/convert/raw_to_tool_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

import logging

from tensorflow.python.profiler.internal import _pywrap_profiler # pylint: disable=g-direct-tensorflow-import
from tensorflow.python.profiler.internal import _pywrap_profiler_plugin # pylint: disable=g-direct-tensorflow-import
from tensorboard_plugin_profile.convert import dcn_collective_stats_proto_to_gviz
from tensorboard_plugin_profile.convert import input_pipeline_proto_to_gviz
from tensorboard_plugin_profile.convert import kernel_stats_proto_to_gviz
Expand Down Expand Up @@ -60,7 +60,7 @@ def xspace_to_tools_data_from_byte_string(xspace_byte_list, filenames, tool,
"""
# pylint:disable=dangerous-default-value
def xspace_wrapper_func(xspace_arg, tool_arg, params={}):
return _pywrap_profiler.xspace_to_tools_data_from_byte_string(
return _pywrap_profiler_plugin.xspace_to_tools_data_from_byte_string(
xspace_arg, filenames, tool_arg, params)
# pylint:enable=dangerous-default-value

Expand All @@ -77,7 +77,7 @@ def xspace_to_tool_names(xspace_paths):
Returns:
Returns a list of tool names.
"""
raw_data, success = _pywrap_profiler.xspace_to_tools_data(
raw_data, success = _pywrap_profiler_plugin.xspace_to_tools_data(
xspace_paths, 'tool_names')
if success:
return [tool + '^' for tool in raw_data.decode().split(',')]
Expand All @@ -88,7 +88,7 @@ def xspace_to_tool_data(
xspace_paths,
tool,
params,
xspace_wrapper_func=_pywrap_profiler.xspace_to_tools_data):
xspace_wrapper_func=_pywrap_profiler_plugin.xspace_to_tools_data):
"""Converts XSpace to tool data string.

Args:
Expand Down