Skip to content

Commit 39e14ee

Browse files
committed
Avoid recursive in padding initialization
1 parent 1153669 commit 39e14ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tensors/src/main/scala/com/thoughtworks/compute/Tensors.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,9 @@ trait Tensors extends OpenCL {
7373
}
7474
}
7575
object Tensor {
76-
def fill(value: Float, shape0: Array[Int], padding: Float = 0.0f) = {
76+
def fill(value: Float, shape0: Array[Int], padding0: Float = 0.0f) = {
7777
new InlineTensor {
78-
val padding: Float = padding
78+
val padding: Float = padding0
7979
val shape: shape0.type = shape0
8080
val closure: trees.FloatTerm = float.literal(value)
8181
}

0 commit comments

Comments
 (0)