org.apache.clojure-mxnet.util
apply-scala-fn
(apply-scala-fn f args)
buffer->vec
(buffer->vec b)
coerce-param
(coerce-param param targets)
coerce-return
(coerce-return return-val)
convert-by-shape
(convert-by-shape param)
convert-io-map
(convert-io-map param)
convert-map
(convert-map param)
convert-shape-map
(convert-shape-map param)
convert-symbol-map
(convert-symbol-map param)
convert-tuple
(convert-tuple param)
convert-vector
(convert-vector param)
empty-indexed-seq
(empty-indexed-seq)
empty-list-map
(empty-list-map)
io-convert-by-param-name
(io-convert-by-param-name param)
keyword->snake-case
(keyword->snake-case vals)
map->scala-tuple-seq
(map->scala-tuple-seq map-or-tuple-seq)
* Convert a map to a scala-Seq of scala-Tubple.
* Should also work if a seq of seq of 2 things passed.
* Otherwise passed through unchanged.
nil-or-coerce-param
(nil-or-coerce-param param targets)
option->value
(option->value opt)
scala-fn
macro
(scala-fn f)
Creates a scala fn from an anonymous clojure fn of the form (fn [x] body)
scala-iterator->seq
(scala-iterator->seq x)
scala-map->map
(scala-map->map m)
scala-vector->vec
(scala-vector->vec x)
translate-keyword-shape
(translate-keyword-shape [k v])
tuple-convert-by-param-name
(tuple-convert-by-param-name param)
validate!
(validate! spec value error-msg)
vec->indexed-seq
(vec->indexed-seq x)