public enum CNN2DFormat extends Enum<CNN2DFormat> implements DataFormat
Modifier and Type | Method and Description |
---|---|
String |
dimensionNames()
Returns a string that explains the dimensions:
NCHW -> returns "[minibatch, channels, height, width]" NHWC -> returns "[minibatch, height, width, channels]" |
static CNN2DFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CNN2DFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CNN2DFormat NCHW
public static final CNN2DFormat NHWC
public static CNN2DFormat[] values()
for (CNN2DFormat c : CNN2DFormat.values()) System.out.println(c);
public static CNN2DFormat valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String dimensionNames()
Copyright © 2021. All rights reserved.