All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.deeplearning4j.ui.stats.sbe.StatSource Maven / Gradle / Ivy

There is a newer version: 1.0.0-M2.1
Show newest version
/*- Generated SBE (Simple Binary Encoding) message codec */
package org.deeplearning4j.ui.stats.sbe;

@javax.annotation.Generated(value = {"StatSource"})
public enum StatSource {
    Parameters((short) 0), Updates((short) 1), Activations((short) 2), NULL_VAL((short) 255);

    private final short value;

    StatSource(final short value) {
        this.value = value;
    }

    public short value() {
        return value;
    }

    public static StatSource get(final short value) {
        switch (value) {
            case 0:
                return Parameters;
            case 1:
                return Updates;
            case 2:
                return Activations;
        }

        if ((short) 255 == value) {
            return NULL_VAL;
        }

        throw new IllegalArgumentException("Unknown value: " + value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy