Skip to content

Commit be2acdc

Browse files
committed
Fixes #111.
1 parent 279355f commit be2acdc

File tree

1 file changed

+3
-4
lines changed
  • api/src/main/scala/org/platanios/tensorflow/api/ops

1 file changed

+3
-4
lines changed

api/src/main/scala/org/platanios/tensorflow/api/ops/Basic.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,9 @@ private[api] trait Basic {
250250
def sparsePlaceholder(
251251
dataType: DataType, shape: Shape = null, name: String = "SparsePlaceholder"): SparseOutput = {
252252
SparseOutput(
253-
indices = placeholder(dataType, Shape(-1), name + "/Indices"),
254-
values = placeholder(INT64, Shape(-1, -1), name + "/Values"),
255-
denseShape =
256-
if (shape == null) placeholder(INT64, Shape(-1), name + "/Shape") else constant(shape.toTensor()))
253+
indices = placeholder(dataType, Shape(-1, -1), name + "/Indices"),
254+
values = placeholder(INT64, Shape(-1), name + "/Values"),
255+
denseShape = if (shape == null) placeholder(INT64, Shape(-1), name + "/Shape") else constant(shape.toTensor()))
257256
}
258257

259258
//endregion Tensor Creation Ops

0 commit comments

Comments
 (0)