From 6283e49e62a90f046c7f2a1a1159cbbd33b0b807 Mon Sep 17 00:00:00 2001 From: chandu0101 Date: Mon, 11 Jun 2018 19:10:58 +0530 Subject: [PATCH] scalajs 1.x doesnt support ptivate memebrs in native traits --- .../scala/io/brunk/tfjs/core/ops/conv.scala | 16 ---------------- .../scala/io/brunk/tfjs/core/ops/pool.scala | 18 ++---------------- 2 files changed, 2 insertions(+), 32 deletions(-) diff --git a/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/conv.scala b/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/conv.scala index 98a56e1..c9c9fb3 100644 --- a/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/conv.scala +++ b/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/conv.scala @@ -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, diff --git a/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/pool.scala b/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/pool.scala index b9859bf..3853a3f 100644 --- a/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/pool.scala +++ b/tfjs-core/src/main/scala/io/brunk/tfjs/core/ops/pool.scala @@ -31,15 +31,7 @@ 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, @@ -47,11 +39,5 @@ trait PoolOps extends js.Object { 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 + }