NEML2 1.4.0
Loading...
Searching...
No Matches
LabeledVector Class Reference

Public Member Functions

None __init__ (self)
 
None __init__ (self, torch.Tensor arg0, typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] arg1)
 
None __init__ (self, Tensor arg0, typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] arg1)
 
None __init__ (self, LabeledVector arg0)
 
str __str__ (self)
 
bool batched (self)
 
LabeledVector clone (self)
 
None copy_ (self, torch.Tensor arg0)
 
LabeledVector detach (self)
 
None detach_ (self)
 
int dim (self)
 
None requires_grad_ (self, bool arg0)
 
Tensor tensor (self)
 
LabeledVector to (self, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
torch.Tensor torch (self)
 
None zero_ (self)
 
typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes (self)
 
LabeledVectorBaseView base (self)
 
LabeledVectorBatchView batch (self)
 
torch.device device (self)
 
torch.dtype dtype (self)
 
torch.Tensor grad (self)
 
bool requires_grad (self)
 
tuple[int,...] shape (self)
 

Static Public Member Functions

LabeledVector empty (tuple[int,...] batch_shape, typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 
LabeledVector zeros (tuple[int,...] batch_shape, typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes, *torch.dtype dtype=..., torch.device device=..., bool requires_grad=False)
 

Constructor & Destructor Documentation

◆ __init__() [1/4]

None __init__ ( self)

◆ __init__() [2/4]

None __init__ ( self,
torch.Tensor arg0,
typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] arg1 )

◆ __init__() [3/4]

None __init__ ( self,
Tensor arg0,
typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] arg1 )

◆ __init__() [4/4]

None __init__ ( self,
LabeledVector arg0 )

Member Function Documentation

◆ __str__()

str __str__ ( self)

◆ axes()

typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes ( self)

◆ base()

LabeledVectorBaseView base ( self)

◆ batch()

LabeledVectorBatchView batch ( self)

◆ batched()

bool batched ( self)

◆ clone()

LabeledVector clone ( self)

◆ copy_()

None copy_ ( self,
torch.Tensor arg0 )

◆ detach()

LabeledVector detach ( self)

◆ detach_()

None detach_ ( self)

◆ device()

torch.device device ( self)

◆ dim()

int dim ( self)

◆ dtype()

torch.dtype dtype ( self)

◆ empty()

LabeledVector empty ( tuple[int, ...] batch_shape,
typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static

◆ grad()

torch.Tensor grad ( self)

◆ requires_grad()

bool requires_grad ( self)

◆ requires_grad_()

None requires_grad_ ( self,
bool arg0 )

◆ shape()

tuple[int, ...] shape ( self)

◆ tensor()

Tensor tensor ( self)

◆ to()

LabeledVector to ( self,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )

◆ torch()

torch.Tensor torch ( self)

◆ zero_()

None zero_ ( self)

◆ zeros()

LabeledVector zeros ( tuple[int, ...] batch_shape,
typing_extensions.Annotated[list[LabeledAxis], pybind11_stubgen.typing_ext.FixedSize(1)] axes,
*torch.dtype dtype = ...,
torch.device device = ...,
bool requires_grad = False )
static