Contains global functions and settings related to tensor element types, used when writing backends.
| Function or value |
Description
|
Full Usage:
opNotSupported msg dtype
Parameters:
string
dtype : Dtype
Returns: 'a
Type parameters: 'a |
Raise an exception indicating the given operation is not supported for the given tensor element type.
|
|
|
Full Usage:
opNotSupportedOnDeviceType msg dtype deviceType
Parameters:
string
dtype : Dtype
deviceType : DeviceType
Returns: 'a
Type parameters: 'a |
Raise an exception indicating the given operation is not supported for the given tensor device type.
|
| Type extension |
Description
|
Full Usage:
this.IsFloatingPoint
Parameters:
unit
Returns: bool
|
|
Full Usage:
this.IsIntegral
Parameters:
unit
Returns: bool
|
© Copyright 2021, DiffSharp and dfx Contributors.