-
Notifications
You must be signed in to change notification settings - Fork 126
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
Fix outdated Trition Transformer code #175
Conversation
Signed-off-by: Xin Fu <xfu83@bloomberg.net>
Signed-off-by: Xin Fu <xfu83@bloomberg.net>
✅ Deploy Preview for elastic-nobel-0aef7a ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
# Here we reshape the data because triton always returns the flatten 1D array as json if not explicitly requesting binary | ||
# since we are not using the triton python client library which takes care of the reshape it is up to user to reshape the returned tensor. | ||
return {output["name"] : np.array(output["data"]).reshape(output["shape"]) for output in results["outputs"]} | ||
return {output["name"]: np.array(output["data"]).reshape(output["shape"]).tolist() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still worth leaving the comments?
Signed-off-by: Dan Sun <dsun20@bloomberg.net>
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xfu83, yuzisun The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* Sync trition transformer code Signed-off-by: Xin Fu <xfu83@bloomberg.net> * Add filename to the code snippet as title Signed-off-by: Xin Fu <xfu83@bloomberg.net> * Update release version Signed-off-by: Dan Sun <dsun20@bloomberg.net> Signed-off-by: Xin Fu <xfu83@bloomberg.net> Signed-off-by: Dan Sun <dsun20@bloomberg.net> Co-authored-by: Dan Sun <dsun20@bloomberg.net>
* Sync trition transformer code Signed-off-by: Xin Fu <xfu83@bloomberg.net> * Add filename to the code snippet as title Signed-off-by: Xin Fu <xfu83@bloomberg.net> * Update release version Signed-off-by: Dan Sun <dsun20@bloomberg.net> Signed-off-by: Xin Fu <xfu83@bloomberg.net> Signed-off-by: Dan Sun <dsun20@bloomberg.net> Co-authored-by: Dan Sun <dsun20@bloomberg.net> Signed-off-by: rachitchauhan43 <rachitchauhan43@gmail.com>
Signed-off-by: Xin Fu xfu83@bloomberg.net
The issue is that the code snippet in "Implement pre/post processing functions" section is outdated and missing the
protocol
override.Proposed Changes