View Source Evision.DNN.DictValue (Evision v0.1.21)

Link to this section Summary

Types

t()

Type that represents an Evision.DNN.DictValue struct.

Functions

Variant 1:

DictValue

getIntValue

getRealValue

getStringValue

isInt

isReal

isString

Link to this section Types

@type t() :: %Evision.DNN.DictValue{ref: reference()}

Type that represents an Evision.DNN.DictValue struct.

  • ref. reference()

    The underlying erlang resource variable.

Link to this section Functions

@spec dictValue(binary()) :: t() | {:error, String.t()}
@spec dictValue(number()) :: t() | {:error, String.t()}
@spec dictValue(integer()) :: t() | {:error, String.t()}

Variant 1:

DictValue

Positional Arguments
Return

Python prototype (for reference only):

DictValue(s) -> <dnn_DictValue object>

Variant 2:

DictValue

Positional Arguments
  • p: double
Return

Python prototype (for reference only):

DictValue(p) -> <dnn_DictValue object>

Variant 3:

DictValue

Positional Arguments
  • i: int
Return

Python prototype (for reference only):

DictValue(i) -> <dnn_DictValue object>
@spec getIntValue(t()) :: integer() | {:error, String.t()}

getIntValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return
  • retval: int

Python prototype (for reference only):

getIntValue([, idx]) -> retval
@spec getIntValue(t(), [{atom(), term()}, ...] | nil) ::
  integer() | {:error, String.t()}

getIntValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return
  • retval: int

Python prototype (for reference only):

getIntValue([, idx]) -> retval
@spec getRealValue(t()) :: number() | {:error, String.t()}

getRealValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return
  • retval: double

Python prototype (for reference only):

getRealValue([, idx]) -> retval
Link to this function

getRealValue(self, opts)

View Source
@spec getRealValue(t(), [{atom(), term()}, ...] | nil) ::
  number() | {:error, String.t()}

getRealValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return
  • retval: double

Python prototype (for reference only):

getRealValue([, idx]) -> retval
@spec getStringValue(t()) :: binary() | {:error, String.t()}

getStringValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return

Python prototype (for reference only):

getStringValue([, idx]) -> retval
Link to this function

getStringValue(self, opts)

View Source
@spec getStringValue(t(), [{atom(), term()}, ...] | nil) ::
  binary() | {:error, String.t()}

getStringValue

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Keyword Arguments
  • idx: int.
Return

Python prototype (for reference only):

getStringValue([, idx]) -> retval
@spec isInt(t()) :: boolean() | {:error, String.t()}

isInt

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Return
  • retval: bool

Python prototype (for reference only):

isInt() -> retval
@spec isReal(t()) :: boolean() | {:error, String.t()}

isReal

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Return
  • retval: bool

Python prototype (for reference only):

isReal() -> retval
@spec isString(t()) :: boolean() | {:error, String.t()}

isString

Positional Arguments
  • self: Evision.DNN.DictValue.t()
Return
  • retval: bool

Python prototype (for reference only):

isString() -> retval