In Losses.java I have:
public static final int CHANNELS_LAST = -1;
public static final int CHANNELS_FIRST = 1;I believe it is the same concept. It’s used in
metrics.CategoricalCrossentropy and
losses.CategoricalCrossentropy Losses.categoricalCrossentropy() as the axis value:
• axis=-1 corresponds to data format `Channels Last’
• axis=1 corresponds to data format 'Channels First’.
The axis value is passed to
nn,softmaxCrossEntropyWithLogitsIf you create an enum I’ll change the CategoricalCrossentropy related classes to use it.
jim