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

Explain a bit more details for Scala NDCollector's Experimental #12348

Merged
merged 1 commit into from
Aug 25, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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