Skip to content

Bug Report: some thing in class LT(ScalarFunction) #10

@ifoyooo

Description

@ifoyooo

So sorry to bother you.

Thanks for your nice code and tutorial, I really benefited a lot after finish module-1. But some thing seems to be wrong with the Class LT. It does not define a backward function, but the method will be tested in task1_4. Am i correct? Or am I misunderstanding something? Thank you so much.

class LT(ScalarFunction):
    "Less-than function :math:`f(x) =` 1.0 if x is less than y else 0.0"

    @staticmethod
    def forward(ctx, a, b):
        # TODO: Implement for Task 1.2.
        raise NotImplementedError('Need to implement for Task 1.2')
        # TODO: Implement for Task 1.2.
        raise NotImplementedError('Need to implement for Task 1.2')
        # TODO: Implement for Task 1.4.
        raise NotImplementedError('Need to implement for Task 1.4')

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