Hi all,
I would like to subclass torch.Tensor so that my object has some additional data.
It looks something like this:
class MyObject(torch.Tensor):
    def __init__(self, x, extra_data):
        self.extra_data = extra_data
        super().__init__(x)

obj_ = MyObject([1, 2, 3], extra_data)

However I get the following error:
Traceback (most recent call last):
  File "main.py", line 29, in <module>
    sentence = MyObject([1, 2, 3], extra_data)
  File "main.py", line 22, in __init__
    super().__init__(sequence)
TypeError: object.__init__() takes no parameters