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

WIP: Explainer updates #31

Merged
merged 1 commit into from
Mar 5, 2021
Merged

WIP: Explainer updates #31

merged 1 commit into from
Mar 5, 2021

Conversation

ukclivecox
Copy link
Contributor

No description provided.

@ukclivecox ukclivecox changed the title Explainer updates WIP: Explainer updates Mar 5, 2021
@@ -35,6 +35,16 @@ def create_v2_from_np(arr: np.ndarray, name: str) -> Dict:
else:
raise ValueError(f"Unknown numpy type {arr.dtype}")

@staticmethod
def create_v2_from_any(data: Any, name: str) -> Dict:
b = list(bytes(data, 'utf-8'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it have to be converted to bytes or would it be ok to just return as an arbitrary dictionary? Is this to ensure it is consistent with grpc proto schema?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs to be bytes I think as its raw data

@ukclivecox ukclivecox merged commit 1c576dc into SeldonIO:master Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants