rztdl.dl.components package

Subpackages

Submodules

rztdl.dl.components.component module

@created on: 2019-12-03, @author: Himaprasoon, @version: v0.0.1

Description:

Sphinx Documentation Status:

class rztdl.dl.components.component.RZTComponent(name: str, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor, typing.List[typing.Union[str, tensorflow.python.framework.ops.Tensor]], typing.Dict[str, typing.Union[str, tensorflow.python.framework.ops.Tensor]]] = None, outputs: typing.Union[str, typing.List[str], typing.Dict[str, str]] = None)[source]

Bases: object

check_empty_list(param, paramter_name)[source]
classmethod component_blueprint()[source]
component_exception(message)[source]
compute_output_signature(input_signature)[source]
create(*inputs, **kwargs)[source]
get_config()[source]
get_tensor_output_by_name(output_name)[source]
parameter_validation(**kwargs)[source]
shape_positive_integer_validation(param, paramter_name)[source]
validate(*inputs, **kwargs)[source]

rztdl.dl.components.custom_component module

class rztdl.dl.components.custom_component.CustomComponent(name: str, parameters: dict, inputs, outputs)[source]

Bases: tensorflow.python.keras.engine.base_layer.Layer, rztdl.dl.components.component.RZTComponent

Custom component

Parameters:
  • name (str) – Name of the custom component
  • parameters (dict) – dictionary containing each parameter
  • inputs – dictionary containing mapping between inputs
  • outputs – Output of the layer
add_weight(name=None, shape=None, dtype=None, initializer=None, regularizer=None, trainable=None, constraint=None, partitioner=None, use_resource=None, **kwargs)[source]
create(**input_dict)[source]
validate(*inputs, **kwargs)[source]
rztdl.dl.components.custom_component.check_outputs(func)[source]

rztdl.dl.components.group_instance module

@created on: 01/20/20, @author: Prathyush SP, @version: v0.0.1

Description:

Sphinx Documentation Status:

class rztdl.dl.components.group_instance.GroupInstance(name: str, instance, inputs: typing.Union[list, dict], outputs: dict = None, sharable: str = None)[source]

Bases: rztdl.dl.components.layers.layer.Layer

Group Instance Class

Parameters:
  • name (str) – Name of the component
  • instance – Group Instance
  • inputs (Union[list, dict]) – Inputs for the group
  • outputs (Optional[dict]) – Outputs from the group
  • sharable (Optional[str]) – Share group with previously created instance
create(*inputs, **kwargs)[source]

Create Component :param inputs: Component Input :param kwargs: Component Arguments :return: Tensor Output

parameter_validation(inputs, outputs, instance)[source]

Parameter Validation

Parameters:
  • inputs – Inputs
  • outputs – Outputs
  • instance – Group Instance
validate(*inputs, **kwargs)[source]

Component Validation :param inputs: :param kwargs: :return:

Module contents

@created on: 2019-12-03, @author: Himaprasoon, @version: v0.0.1

Description:

Sphinx Documentation Status: