Skip to content

Update DLPythonNetworkSpecToDataFrameConverter.py #1

New issue

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

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

Already on GitHub? # to your account

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
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __layer_data_specs_to_data_frame(self, layer_specs):
specs.iloc[idx, 4] = tensor_spec.element_type
specs.iloc[idx, 5] = tensor_spec.dimension_order

specs_with_numeric_types = specs.convert_objects(convert_numeric=True)
specs_with_numeric_types = specs.convert_dtypes()
specs_with_numeric_types['id'] = specs_with_numeric_types['id'].astype(str)
specs_with_numeric_types['name'] = specs_with_numeric_types['name'].astype(str)
return specs_with_numeric_types
Expand Down