stgraph.compiler.val package

Subpackages

Submodules

stgraph.compiler.val.val module

class stgraph.compiler.val.val.Val(tensor, id, fprog)[source]

Bases: ABC

abstract backend()[source]

Return backend system

abstract backend_key()[source]

Return key of backend system

abstract device()[source]

Return which device is on

abstract dtype()[source]

Return the DType

property id
abstract layout()[source]

Return the layout

abstract requires_grad()[source]

Return whether requires gradient

abstract size()[source]

Return the size(i.e. shape)

abstract sum()[source]
property v
abstract val_type()[source]

Return ValueType

abstract view(*args, **kargs)[source]

stgraph.compiler.val.val_factory module

class stgraph.compiler.val.val_factory.ValFactory[source]

Bases: object

create(type: ValType, tensor, backend, id, fprog, reduce_dim)[source]
get_val_backend(backend)[source]

Module contents