Dtype Module

Contains functions and settings related to tensor element types

Functions and values

Function or value Description

Default

Full Usage: Default

Returns: Dtype

Get or set the default element type used when creating tensors. Only floating point types are supported as the default type. Note, use dsharp.config(...) instead.

Returns: Dtype

divisionType dtype1 dtype2

Full Usage: divisionType dtype1 dtype2

Parameters:
Returns: Dtype

Find the Dtype which would result from dividing tensors with dtype1 and dtype2

dtype1 : Dtype
dtype2 : Dtype
Returns: Dtype

widen dtype1 dtype2

Full Usage: widen dtype1 dtype2

Parameters:
Returns: Dtype option

Find the Dtype into which dtype1 and dtype2 can be widened

dtype1 : Dtype
dtype2 : Dtype
Returns: Dtype option

Active patterns

Active pattern Description

(|FloatingPoint|_|) x

Full Usage: (|FloatingPoint|_|) x

Parameters:
Returns: unit option

Matches all floating point tensor element types

x : Dtype
Returns: unit option

(|IntegralOrBool|_|) x

Full Usage: (|IntegralOrBool|_|) x

Parameters:
Returns: unit option

Matches all integral or boolean tensor element types

x : Dtype
Returns: unit option

(|Integral|_|) x

Full Usage: (|Integral|_|) x

Parameters:
Returns: unit option

Matches all integral tensor element types

x : Dtype
Returns: unit option

© Copyright 2021, DiffSharp Contributors.