Skip to content

Commit

Permalink
change NDArray writable flag and rm log txt
Browse files Browse the repository at this point in the history
  • Loading branch information
yanqingmen committed Dec 29, 2015
1 parent 3a017c5 commit d91c39c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 666 deletions.
4 changes: 2 additions & 2 deletions scala-package/core/src/main/scala/ml/dmlc/mxnet/IO.scala
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ class MXDataIter(val handle: DataIterHandle) extends DataIter {
override def getData(): NDArray = {
val out = new NDArrayHandle
checkCall(_LIB.mxDataIterGetData(handle, out))
return new NDArray(out)
return new NDArray(out, writable = false)
}

/**
Expand All @@ -167,7 +167,7 @@ class MXDataIter(val handle: DataIterHandle) extends DataIter {
override def getLabel(): NDArray = {
val out = new NDArrayHandle
checkCall(_LIB.mxDataIterGetLabel(handle, out))
return new NDArray(out)
return new NDArray(out, writable = false)
}

/**
Expand Down
Loading

0 comments on commit d91c39c

Please sign in to comment.