Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
explain the details for Scala Experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
yzhliu committed Aug 24, 2018
1 parent d2495d1 commit f8fcee4
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 f8fcee4

Please sign in to comment.