Skip to content
This repository was archived by the owner on Jul 1, 2023. It is now read-only.

Add logarithm-cosine loss #227

Merged
merged 12 commits into from
Jun 16, 2019
Merged

Add logarithm-cosine loss #227

merged 12 commits into from
Jun 16, 2019

Conversation

Shashi456
Copy link
Contributor

@Shashi456 Shashi456 commented Jun 13, 2019

depends on #225.
Otherwise passes locally.

I had a very hacky way of getting the helper logcosh to work. But I could not figure out how to get around the error: binary operator '-' cannot be applied to operands of type 'Tensor<Scalar>' and '_' that pops up when i do x + softplus(Tensor(-2) * x) - log(2). If you have suggestions please tell me.

Reference #127

@rxwei rxwei changed the title Adding Log cosh Loss Add logarithm-cosine loss Jun 13, 2019
@Shashi456
Copy link
Contributor Author

@rxwei this PR wont pass #148/#225 block this.

@Shashi456
Copy link
Contributor Author

Please don't trigger a build on this until either #148 or #225 is merged. Softplus is a requirement for logcosh.

@rxwei
Copy link
Contributor

rxwei commented Jun 16, 2019

#225 has been merged. Please pull from master when you get a chance and I'll kick off a build for you.

@Shashi456
Copy link
Contributor Author

I'll do it immediately

@Shashi456
Copy link
Contributor Author

Requesting a final build on this.

@rxwei rxwei merged commit 290af7b into tensorflow:master Jun 16, 2019
@Shashi456 Shashi456 deleted the lc branch June 16, 2019 19:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants