Contents

supportsDataType(_:on:)

Returns a Boolean that indicates whether instances of this layer accept source tensors for the data type and device that you specify.

Declaration

class func supportsDataType(_ dataType: MLCDataType, on device: MLCDevice) -> Bool

Parameters

  • dataType:

    The data type of a possible input tensor to the layer.

  • device:

    The device to use to determine layer support.

Return Value

true if the specified data type and device are supported.

See Also

Inspecting a Layer