DtypeAutoOpens Module

Contains global functions and settings related to tensor element types, used when writing backends.

Functions and values

Function or value Description

opNotSupported msg dtype

Full Usage: opNotSupported msg dtype

Parameters:
    msg : string
    dtype : Dtype

Returns: 's

Raise an exception indicating the given operation is not supported for the given tensor element type.

msg : string
dtype : Dtype
Returns: 's

opNotSupported2 msg dtype1 dtype2

Full Usage: opNotSupported2 msg dtype1 dtype2

Parameters:
Returns: 'a

Raise an exception indicating the given binary operation is not supported for the two given tensor element types.

msg : string
dtype1 : Dtype
dtype2 : Dtype
Returns: 'a

opNotSupportedOnDeviceType msg dtype deviceType

Full Usage: opNotSupportedOnDeviceType msg dtype deviceType

Parameters:
Returns: 'a

Raise an exception indicating the given operation is not supported for the given tensor device type.

msg : string
dtype : Dtype
deviceType : DeviceType
Returns: 'a

Type extensions

Type extension Description

this.IsFloatingPoint

Full Usage: this.IsFloatingPoint

Parameters:
    () : unit

Returns: bool

Matches all floating point tensor element types

Extended Type: Dtype

() : unit
Returns: bool

this.IsFloatingPoint

Full Usage: this.IsFloatingPoint

Returns: bool

Matches all floating point tensor element types

Extended Type: Dtype

Returns: bool

this.IsIntegral

Full Usage: this.IsIntegral

Parameters:
    () : unit

Returns: bool

Matches all integral tensor element types

Extended Type: Dtype

() : unit
Returns: bool

this.IsIntegral

Full Usage: this.IsIntegral

Returns: bool

Matches all integral tensor element types

Extended Type: Dtype

Returns: bool

© Copyright 2021, DiffSharp Contributors.