org.apache.clojure-mxnet.util

->option

(->option v)

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

(empty-list)

empty-list-map

(empty-list-map)

empty-map

(empty-map)

io-convert-by-param-name

(io-convert-by-param-name param)

io-param-names

keyword->snake-case

(keyword->snake-case vals)

list-map

(list-map m)

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.

map->tuple

(map->tuple m)

ndarray-param-coerce

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)

symbol-param-coerce

translate-keyword-shape

(translate-keyword-shape [k v])

tuple->vec

(tuple->vec p)

tuple-convert-by-param-name

(tuple-convert-by-param-name param)

tuple-param-names

validate!

(validate! spec value error-msg)

vec->indexed-seq

(vec->indexed-seq x)

vec->set

(vec->set param)