Skip to content

Instantly share code, notes, and snippets.

@gigasquid
Last active Sep 28, 2018
Embed
What would you like to do?
(ns dev.generator
(:require [clojure.reflect :as r])
(:import (org.apache.mxnet NDArray Symbol))
(:gen-class))
(->> (:members (r/reflect (Symbol/api)))
(filter #(clojure.string/includes? (:name %) "FullyConnected")))
;;=> output
({:name FullyConnected$default$2,
:return-type scala.Option,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$5,
:return-type scala.Option,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected,
:return-type org.apache.mxnet.Symbol,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types
[scala.Option
scala.Option
scala.Option
int
scala.Option
scala.Option
java.lang.String
scala.collection.immutable.Map],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$7,
:return-type java.lang.String,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$6,
:return-type scala.Option,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$1,
:return-type scala.Option,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$8,
:return-type scala.collection.immutable.Map,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$3,
:return-type scala.Option,
:declaring-class org.apache.mxnet.SymbolAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}})
;;;;; NDArray
(->> (:members (r/reflect (NDArray/api)))
(filter #(clojure.string/includes? (:name %) "FullyConnected")))
;; output
({:name FullyConnected$default$6,
:return-type scala.Option,
:declaring-class org.apache.mxnet.NDArrayAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$5,
:return-type scala.Option,
:declaring-class org.apache.mxnet.NDArrayAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected$default$7,
:return-type scala.Option,
:declaring-class org.apache.mxnet.NDArrayAPI$,
:parameter-types [],
:exception-types [],
:flags #{:public}}
{:name FullyConnected,
:return-type org.apache.mxnet.NDArrayFuncReturn,
:declaring-class org.apache.mxnet.NDArrayAPI$,
:parameter-types
[org.apache.mxnet.NDArray
org.apache.mxnet.NDArray
org.apache.mxnet.NDArray
int
scala.Option
scala.Option
scala.Option],
:exception-types [],
:flags #{:public}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment