go-ml-dev/nn

View on GitHub
mx/capi/capi.go

Summary

Maintainability
A
0 mins
Test Coverage
B
81%

exported function ComposeSymbol should have comment or be unexported
Open

func ComposeSymbol(handle SymbolHandle, name string, a ...SymbolHandle) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function GroupSymbols should have comment or be unexported
Open

func GroupSymbols(s []SymbolHandle) SymbolHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ReleaseSymbol should have comment or be unexported
Open

func ReleaseSymbol(handle SymbolHandle) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function CreateVariable should have comment or be unexported
Open

func CreateVariable(name string) SymbolHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ListNames should have comment or be unexported
Open

func ListNames(handle SymbolHandle, kind int) []string {
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var aux_sn should be auxSn
Open

        in_sn, out_sn, aux_sn *C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var in_ss should be inSs
Open

        in_ss, out_ss, aux_ss C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported const WithAuxStates should have comment or be unexported
Open

const WithAuxStates = 4
Severity: Minor
Found in mx/capi/capi.go by golint

exported function InferShapes should have comment or be unexported
Open

func InferShapes(handle SymbolHandle, with map[string][]int, selector int) map[string][]int {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function Forward should have comment or be unexported
Open

func Forward(exec ExecutorHandle, train bool) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported const WithArguments should have comment or be unexported
Open

const WithArguments = 1
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var aux_sd should be auxSd
Open

        in_sd, out_sd, aux_sd **C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported function GetOutputs should have comment or be unexported
Open

func GetOutputs(exec ExecutorHandle) []NDArrayInfo {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function NewNDArrayHandle should have comment or be unexported
Open

func NewNDArrayHandle(devType int, devNo int, dtype int, shape [4]int, slen int) NDArrayHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

exported const WithOutputs should have comment or be unexported
Open

const WithOutputs = 2
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var out_sd should be outSd
Open

        in_sd, out_sd, aux_sd **C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported function FillInfo should have comment or be unexported
Open

func FillInfo(nfo *NDArrayInfo) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported var LibVersion should have comment or be unexported
Open

var LibVersion = 0
Severity: Minor
Found in mx/capi/capi.go by golint

exported const ArgumentsNames should have comment or be unexported
Open

const ArgumentsNames = 0
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var shape_at should be shapeAt
Open

    shape_at := func(i int, d *C.uint, s **C.uint) []int {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function Bind should have comment or be unexported
Open

func Bind(symbol SymbolHandle, devType, devNo int, args []NDArrayHandle, grads []NDArrayHandle, aux []NDArrayHandle) ExecutorHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var out_nn should be outNn
Open

        out_nn C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var name_at should be nameAt
Open

    name_at := func(i int) string {
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var aux_ss should be auxSs
Open

        in_ss, out_ss, aux_ss C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported var GpuCount should have comment or be unexported
Open

var GpuCount int = 0
Severity: Minor
Found in mx/capi/capi.go by golint

exported type NDArrayHandle should have comment or be unexported
Open

type NDArrayHandle = C.NDArrayHandle
Severity: Minor
Found in mx/capi/capi.go by golint

exported type SymbolHandle should have comment or be unexported
Open

type SymbolHandle = C.SymbolHandle
Severity: Minor
Found in mx/capi/capi.go by golint

exported type ExecutorHandle should have comment or be unexported
Open

type ExecutorHandle = C.ExecutorHandle
Severity: Minor
Found in mx/capi/capi.go by golint

exported function NewSymbol should have comment or be unexported
Open

func NewSymbol(op MxnetOp, attr map[MxnetKey]string, a ...interface{}) SymbolHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function Backward should have comment or be unexported
Open

func Backward(exec ExecutorHandle) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function GetNDArrayRawData should have comment or be unexported
Open

func GetNDArrayRawData(handle NDArrayHandle, p unsafe.Pointer, len int) {
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var out_sn should be outSn
Open

        in_sn, out_sn, aux_sn *C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported function GetInternals should have comment or be unexported
Open

func GetInternals(s SymbolHandle) SymbolHandle {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ReleaseExecutor should have comment or be unexported
Open

func ReleaseExecutor(handle ExecutorHandle) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ImperativeInvokeInplace1 should have comment or be unexported
Open

func ImperativeInvokeInplace1(op MxnetOp, h NDArrayHandle, a ...interface{}) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function SetNDArrayRawData should have comment or be unexported
Open

func SetNDArrayRawData(handle NDArrayHandle, p unsafe.Pointer, len int) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported const AuxNames should have comment or be unexported
Open

const AuxNames = 2
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var out_ns should be outNs
Open

        out_ns **C.char
Severity: Minor
Found in mx/capi/capi.go by golint

exported type NDArrayInfo should have comment or be unexported
Open

type NDArrayInfo struct {
Severity: Minor
Found in mx/capi/capi.go by golint

func ToJson should be ToJSON
Open

func ToJson(sym SymbolHandle) []byte {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ContextRandomSeed should have comment or be unexported
Open

func ContextRandomSeed(seed, devType, devNo int) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ImperativeInvokeInOut1 should have comment or be unexported
Open

func ImperativeInvokeInOut1(op MxnetOp, h NDArrayHandle, o NDArrayHandle, a ...interface{}) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported const OutputNames should have comment or be unexported
Open

const OutputNames = 1
Severity: Minor
Found in mx/capi/capi.go by golint

exported function RandomSeed should have comment or be unexported
Open

func RandomSeed(seed int) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ReleaseNDArry should have comment or be unexported
Open

func ReleaseNDArry(handle NDArrayHandle) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported const WithoutOutput should have comment or be unexported
Open

const WithoutOutput = 8
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var out_ss should be outSs
Open

        in_ss, out_ss, aux_ss C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var in_sn should be inSn
Open

        in_sn, out_sn, aux_sn *C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

don't use underscores in Go names; var in_sd should be inSd
Open

        in_sd, out_sd, aux_sd **C.uint
Severity: Minor
Found in mx/capi/capi.go by golint

exported function OptimizerUpdate should have comment or be unexported
Open

func OptimizerUpdate(op MxnetOp, params, grads, state1 NDArrayHandle, state2 NDArrayHandle, a ...interface{}) {
Severity: Minor
Found in mx/capi/capi.go by golint

exported function ToJson should have comment or be unexported
Open

func ToJson(sym SymbolHandle) []byte {
Severity: Minor
Found in mx/capi/capi.go by golint

There are no issues that match your filters.

Category
Status