View Source Evision.MatShape (Evision v1.1.1)
Summary
Functions
channels
clear
empty
erase
expand
flatten
flatten
hasSymbols
isScalar
reshape
reshape
squeeze
squeeze
toLayout
toLayout
unsqueeze
Enumerator
Types
Functions
@spec channels(Keyword.t()) :: any() | {:error, String.t()}
@spec channels(t()) :: integer() | {:error, String.t()}
channels
Positional Arguments
- self:
Evision.MatShape.t()
Return
- retval:
integer()
Python prototype (for reference only):
channels() -> retval
@spec clear(Keyword.t()) :: any() | {:error, String.t()}
@spec clear(t()) :: [integer()] | {:error, String.t()}
clear
Positional Arguments
- self:
Evision.MatShape.t()
Python prototype (for reference only):
clear() -> None
@spec empty(Keyword.t()) :: any() | {:error, String.t()}
@spec empty(t()) :: boolean() | {:error, String.t()}
empty
Positional Arguments
- self:
Evision.MatShape.t()
Return
- retval:
bool
Python prototype (for reference only):
empty() -> retval
erase
Positional Arguments
- self:
Evision.MatShape.t() - where:
int*
Python prototype (for reference only):
erase(where) -> None
expand
Positional Arguments
- self:
Evision.MatShape.t() - another:
Evision.MatShape
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
expand(another) -> retval
@spec flatten(Keyword.t()) :: any() | {:error, String.t()}
@spec flatten(t()) :: [integer()] | {:error, String.t()}
flatten
Positional Arguments
- self:
Evision.MatShape.t()
Keyword Arguments
- startAxis:
integer(). - endAxis:
integer().
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
flatten([, startAxis[, endAxis]]) -> retval
@spec flatten(t(), [endAxis: term(), startAxis: term()] | nil) :: [integer()] | {:error, String.t()}
flatten
Positional Arguments
- self:
Evision.MatShape.t()
Keyword Arguments
- startAxis:
integer(). - endAxis:
integer().
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
flatten([, startAxis[, endAxis]]) -> retval
@spec hasSymbols(Keyword.t()) :: any() | {:error, String.t()}
@spec hasSymbols(t()) :: boolean() | {:error, String.t()}
hasSymbols
Positional Arguments
- self:
Evision.MatShape.t()
Return
- retval:
bool
Python prototype (for reference only):
hasSymbols() -> retval
@spec isScalar(Keyword.t()) :: any() | {:error, String.t()}
@spec isScalar(t()) :: boolean() | {:error, String.t()}
isScalar
Positional Arguments
- self:
Evision.MatShape.t()
Return
- retval:
bool
Python prototype (for reference only):
isScalar() -> retval
reshape
Positional Arguments
- self:
Evision.MatShape.t() - newShape:
Evision.MatShape
Keyword Arguments
- allowZero:
bool.
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
reshape(newShape[, allowZero]) -> retval
reshape
Positional Arguments
- self:
Evision.MatShape.t() - newShape:
Evision.MatShape
Keyword Arguments
- allowZero:
bool.
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
reshape(newShape[, allowZero]) -> retval
@spec squeeze(Keyword.t()) :: any() | {:error, String.t()}
@spec squeeze(t()) :: [integer()] | {:error, String.t()}
squeeze
Positional Arguments
- self:
Evision.MatShape.t()
Keyword Arguments
- axes:
[integer()].
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
squeeze([, axes]) -> retval
squeeze
Positional Arguments
- self:
Evision.MatShape.t()
Keyword Arguments
- axes:
[integer()].
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
squeeze([, axes]) -> retval
toLayout
Positional Arguments
- self:
Evision.MatShape.t() - newLayout:
DataLayout
Keyword Arguments
- c0:
integer().
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
toLayout(newLayout[, C0]) -> retval
@spec toLayout(t(), Evision.DNN.DataLayout.enum(), [{:c0, term()}] | nil) :: [integer()] | {:error, String.t()}
toLayout
Positional Arguments
- self:
Evision.MatShape.t() - newLayout:
DataLayout
Keyword Arguments
- c0:
integer().
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
toLayout(newLayout[, C0]) -> retval
unsqueeze
Positional Arguments
- self:
Evision.MatShape.t() - axes:
[integer()]
Return
- retval:
Evision.MatShape.t()
Python prototype (for reference only):
unsqueeze(axes) -> retval