API Documentation
iai_powerflow_sdk.base_class
Initialize an instance based on the root class and a class name
Args
root_class (Type): the root class of the class to be initialized
class_name (str): name of the class to be initialized
Returns
Callable: an instance of the specified class
Raises
Exception: If the base class cannot be found.
IaiBaseModule
Helper class that provides a standard way to create an ABC using inheritance.
Super class of all models in PowerFlow Note: ALL child class SHOULD implement the __init__ functions with proper parameters
The forward function which is responsible for computations and returns the outputs of model.
Returns
y_predict (Tensor): it should be a tensor of dimensions [N, C, l1, ...] where N is the batch size and C is the the number of classes and l1..n are the other dimensions, if your output consist of multiple dimensions.
Inherited Members
torch.nn.modules.module.Module dump_patches, register_buffer, register_parameter, add_module, get_submodule, get_parameter, get_buffer, get_extra_state, set_extra_state, apply, cuda, xpu, cpu, type, float, double, half, bfloat16, to_empty, to, register_backward_hook, register_full_backward_hook, register_forward_pre_hook, register_forward_hook, T_destination, state_dict, load_state_dict, parameters, named_parameters, buffers, named_buffers, children, named_children, modules, named_modules, train, eval, requires_grad_, zero_grad, share_memory, extra_repr
IaiBaseDataset
Helper class that provides a standard way to create an ABC using inheritance.
Super class of all Datasets in PowerFlow Note: ALL child class SHOULD implement the __init__ functions with proper parameters.
Args
path (str): this parameter is required in any dataset and refers to the source of data
that can be a folder or file and gets set in the CLI.
Inherited Members
torch.utils.data.dataset.Dataset functions, register_function, register_datapipe_as_function
Last updated