Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1. changes for abs and add layer according to pr 2. checkin AbsCriiterion and AddConstant layer #45

Closed
wants to merge 3 commits into from

Conversation

zhangxiaoli73
Copy link
Contributor

No description provided.

override def updateGradInput(input: Tensor[T], gradOutput: Tensor[T]): Tensor[T] = {
gradInput.resizeAs(input).copy(gradOutput)

val inputArray = input.storage().array()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please check input.isContigous and gradOutput.isContigous .

Or the code will be wrong

}

override def reset(): Unit = {
initMethod match {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's don't give user other option here

dding3 pushed a commit to dding3/BigDL that referenced this pull request Nov 17, 2021
…-analytics#45)

* refactor

* refactor python

* refactor scala

* add remark for torch layers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants