Skip to content

feat: save image tensor to file#1335

Merged
samsja merged 2 commits intofeat-rewrite-v2from
feat-save-image-tensor
Apr 4, 2023
Merged

feat: save image tensor to file#1335
samsja merged 2 commits intofeat-rewrite-v2from
feat-save-image-tensor

Conversation

@anna-charlotte
Copy link
Copy Markdown
Contributor

Goals:
Save an image tensor to file, such as .jpg or .png

  • check and update documentation, if required. See guide


return img_byte_arr

def save(self: 'T', file_path: str) -> None:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think you need the T here. Self is always from the class

Suggested change
def save(self: 'T', file_path: str) -> None:
def save(self, file_path: str) -> None:

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 4, 2023

📝 Docs are deployed on https://ft-feat-save-image-tensor--jina-docs.netlify.app 🎉

@samsja samsja merged commit 02d66ed into feat-rewrite-v2 Apr 4, 2023
@samsja samsja deleted the feat-save-image-tensor branch April 4, 2023 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants