DataConverter Module

Contains operations relating to converting .NET data to tensor data.

Functions and values

Function or value Description

dataOfValues ofFloat32 ofFloat64 ofInt8 ofInt16 ofInt32 ofInt64 ofBool ofByte value

Full Usage: dataOfValues ofFloat32 ofFloat64 ofInt8 ofInt16 ofInt32 ofInt64 ofBool ofByte value

Parameters:
    ofFloat32 : float32 -> ^T
    ofFloat64 : double -> ^T
    ofInt8 : int8 -> ^T
    ofInt16 : int16 -> ^T
    ofInt32 : int32 -> ^T
    ofInt64 : int64 -> ^T
    ofBool : bool -> ^T
    ofByte : byte -> ^T
    value : obj

Returns: ^T[] * int[]
Modifiers: inline
Type parameters: ^T
ofFloat32 : float32 -> ^T
ofFloat64 : double -> ^T
ofInt8 : int8 -> ^T
ofInt16 : int16 -> ^T
ofInt32 : int32 -> ^T
ofInt64 : int64 -> ^T
ofBool : bool -> ^T
ofByte : byte -> ^T
value : obj
Returns: ^T[] * int[]

dataOfValuesForBool value

Full Usage: dataOfValuesForBool value

Parameters:
    value : obj

Returns: bool[] * int[]
value : obj
Returns: bool[] * int[]

dataOfValuesForByte value

Full Usage: dataOfValuesForByte value

Parameters:
    value : obj

Returns: byte[] * int[]
value : obj
Returns: byte[] * int[]

dataOfValuesForFloat32 value

Full Usage: dataOfValuesForFloat32 value

Parameters:
    value : obj

Returns: float32[] * int[]
value : obj
Returns: float32[] * int[]

dataOfValuesForFloat64 value

Full Usage: dataOfValuesForFloat64 value

Parameters:
    value : obj

Returns: double[] * int[]
value : obj
Returns: double[] * int[]

dataOfValuesForInt16 value

Full Usage: dataOfValuesForInt16 value

Parameters:
    value : obj

Returns: int16[] * int[]
value : obj
Returns: int16[] * int[]

dataOfValuesForInt32 value

Full Usage: dataOfValuesForInt32 value

Parameters:
    value : obj

Returns: int32[] * int[]
value : obj
Returns: int32[] * int[]

dataOfValuesForInt64 value

Full Usage: dataOfValuesForInt64 value

Parameters:
    value : obj

Returns: int64[] * int[]
value : obj
Returns: int64[] * int[]

dataOfValuesForInt8 value

Full Usage: dataOfValuesForInt8 value

Parameters:
    value : obj

Returns: int8[] * int[]
value : obj
Returns: int8[] * int[]

formatType ty

Full Usage: formatType ty

Parameters:
Returns: string
ty : Type
Returns: string

tryFlatArrayAndShape value

Full Usage: tryFlatArrayAndShape value

Parameters:
    value : obj

Returns: ('T[] * int[]) option
value : obj
Returns: ('T[] * int[]) option

typesMatch array

Full Usage: typesMatch array

Parameters:
Returns: bool
array : Array
Returns: bool

© Copyright 2021, DiffSharp Contributors.