How to defind my own datatype to defind the typeda...
# ask-the-community
r
How to defind my own datatype to defind the typedata for each task. I want to defind something not regular such as torch.model or sth like deeplake.dataset, ...
r
@Samhita Alla I want to use specific this object class Dataset, are there any simple way to do that . https://github.com/activeloopai/deeplake/blob/main/deeplake/core/dataset/dataset.py#L158
@Samhita Alla Cuz if i want to using the datatype of another lib which may be very complicate to rewrite. In your solution, I can understand that I have to rewrite then register to DataType engine.
s
If you want add it as a native type, then you need to add a type transformer. It shouldn't be very complex to add. Else, it usually gets automatically pickled.