Skip to content

(tanx)'=sec²x=1+tan²x #2

@lls3018

Description

@lls3018

i think this is right!

def backward(self, X, top_diff):
output = self.forward(X)
return (1.0 + np.square(output)) * top_diff

beacuse (tanx)'=sec²x=1+tan²x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions