Skip to content

Commit

Permalink
explain the details for Scala Experimental (apache#12348)
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu authored Aug 25, 2018
1 parent c88ffe8 commit 9189e28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ class NDArrayCollector private(private val autoDispose: Boolean = true,
* If the return type of scope is <em>NDArray</em> or <em>NDArrayFuncReturn</em>,
* it is smart enough NOT to collect or dispose the returned NDArray. <br />
* However in other cases, it is users' responsibility NOT to leak allocated NDArrays outside.
* <br />
* We might switch to try -with-resources statement (by AutoCloseable in Java 1.7+)
* and deprecate this method later, thus it is marked as Experimental.
*
* @param codeBlock code block to be executed within the scope.
* @tparam T return type of the function <em>codeBlock</em>.
* @return The result of function <em>codeBlock</em>.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import java.lang.annotation.{ElementType, Retention, Target, _}

/**
* Experimental: there is a comparably high chance that
* the API will undergo some kind of changes
* the API will be changed or removed.
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(Array(ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER,
Expand Down

0 comments on commit 9189e28

Please sign in to comment.