Skip to content

An abstract class for all transforms #181

Closed
@chsasank

Description

@chsasank

Shouldn't there be a base class for all transforms like torch.utils.data.Dataset?

It can be:

class Transform(object):
    def __init__():
        pass

    def __call__():
        raise NotImplementedError

This makes transforms transparent and easy to refer in other functions like Compose.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions