SwiftenumNeuralNetworks
FeatureInputType
enum NeuralNetworks.FeatureInputType
Members 9
- func
static bgrImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType - func
static grayScaleImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType - func
static rgbImage(size: (height: Int, width: Int), channelsFirst: Bool) -> NeuralNetworks.FeatureInputType - func
static tensor(like: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType - func
static tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType) -> NeuralNetworks.FeatureInputType - func
static tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.TensorScalar.Type) -> NeuralNetworks.FeatureInputType - func
static tensor(NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType - case
case image(size: (height: Int, width: Int), colorLayout: NeuralNetworks.FeatureInputType.ColorLayout, channelsFirst: Bool) - case
case tensor(NeuralNetworks.FeatureInputType.TensorValueRepresentation)
Header
enum FeatureInputType { enum ColorLayout { case rgb case bgr case grayscale } enum TensorValueRepresentation { case inputPlaceholder(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType) case placeholder(shape: NeuralNetworks.TensorShape, scalarType: any NeuralNetworks.TensorScalar.Type) case concrete(NeuralNetworks.Tensor) } case tensor(NeuralNetworks.FeatureInputType.TensorValueRepresentation) case image(size: (height: Swift.Int, width: Swift.Int), colorLayout: NeuralNetworks.FeatureInputType.ColorLayout, channelsFirst: Swift.Bool) static func grayScaleImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType static func tensor(like: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType static func tensor(shape: NeuralNetworks.TensorShape, scalarType: NeuralNetworks.ScalarType) -> NeuralNetworks.FeatureInputType static func tensor(shape: NeuralNetworks.TensorShape, scalarType: any NeuralNetworks.TensorScalar.Type) -> NeuralNetworks.FeatureInputType static func tensor(_: NeuralNetworks.Tensor) -> NeuralNetworks.FeatureInputType static func bgrImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType static func rgbImage(size: (height: Swift.Int, width: Swift.Int), channelsFirst: Swift.Bool) -> NeuralNetworks.FeatureInputType }