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

scalajs 1.x doesnt support ptivate memebrs in native traits #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/conv.scala
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,6 @@ trait ConvOps extends js.Object {
dilations: js.Tuple2[Double, Double] | Double = ???,
dimRoundingMode: String = ???
): T = js.native
private def conv2dDerInput[T <: Tensor3D | Tensor4D](
xShape: js.Tuple4[Double, Double, Double, Double] | js.Tuple3[Double, Double, Double],
dy: T,
filter: Tensor4D,
strides: js.Tuple2[Double, Double] | Double,
pad: String | Double,
dimRoundingMode: String = ???
): T = js.native
private def conv2dDerFilter[T <: Tensor3D | Tensor4D](
x: T,
dy: T,
filterShape: js.Tuple4[Double, Double, Double, Double],
strides: js.Tuple2[Double, Double] | Double,
pad: String | Double,
dimRoundingMode: String = ???
): Tensor4D = js.native
def conv2dTranspose[T <: Tensor3D | Tensor4D](
x: T,
filter: Tensor4D,
Expand Down
18 changes: 2 additions & 16 deletions tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/pool.scala
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,13 @@ trait PoolOps extends js.Object {
pad: String | Double,
dimRoundingMode: String = ???
): T = js.native
private def maxPoolBackprop(
dy: Tensor4D,
input: Tensor4D,
output: Tensor4D,
filterSize: js.Tuple2[Double, Double] | Double,
strides: js.Tuple2[Double, Double] | Double,
pad: String | Double,
dimRoundingMode: String = ???
): Tensor4D = js.native

def avgPool[T <: Tensor3D | Tensor4D](
x: T,
filterSize: js.Tuple2[Double, Double] | Double,
strides: js.Tuple2[Double, Double] | Double,
pad: String | Double,
dimRoundingMode: String = ???
): T = js.native
private def avgPoolBackprop[T <: Tensor3D | Tensor4D](
dy: T,
input: T,
filterSize: js.Tuple2[Double, Double] | Double,
strides: js.Tuple2[Double, Double] | Double,
pad: String | Double
): T = js.native

}