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

Support of Torch and Tensorflow Tensors #7

Open
raphaelDkhn opened this issue Feb 7, 2024 · 1 comment
Open

Support of Torch and Tensorflow Tensors #7

raphaelDkhn opened this issue Feb 7, 2024 · 1 comment

Comments

@raphaelDkhn
Copy link
Contributor

No description provided.

@shivam6862
Copy link

shivam6862 commented May 4, 2024

@raphaelDkhn I would like to work on this issue!

I am approaching this issue in this way and writing the test for it.....

Guide me to it

working on this file : osiris/cairo/serde/data_structures.py

class Tensor:
    def __init__(self, shape: tuple, data):
        self.shape = shape
        self.data = data

    @classmethod
    def from_torch(cls, torch_tensor):
        return cls(torch_tensor.shape, torch_tensor)

    @classmethod
    def from_tensorflow(cls, tf_tensor):
        ..........

    def to_torch(self):
        ..........

    def to_tensorflow(self):
        ..........

    def add(self, other):
        ..........

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

No branches or pull requests

2 participants