rztdl.dl.components.operators.primitive package

Submodules

rztdl.dl.components.operators.primitive.add module

@created on: 2020-01-08,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.add.Add(name: str, inputs: typing.List[typing.Union[str, tensorflow.python.framework.ops.Tensor]], outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.merge.Add, rztdl.dl.components.operators.operator.Operator

Add Operator

Parameters:
  • name (str) – Name of the instance
  • inputs (List[Union[str, Tensor]]) – Input tensors
  • outputs (Optional[str]) – Output Tensor
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.concat module

@created on: 16/12/19,
@author: Umesh Kumar,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.concat.Concat(name: str, axis: int, inputs: typing.List[typing.Union[str, tensorflow.python.framework.ops.Tensor]], outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.merge.Concatenate, rztdl.dl.components.operators.operator.Operator

Multiple tensors are concatenated on a specific dimension or axis using this operator.

Parameters:
  • name (str) – Name of the Concat instance
  • axis (int) – Dimension along which Tensors should concat
  • inputs (List[Union[str, Tensor]]) – Input Tensor of Concat Operator
  • outputs (Optional[str]) – Output Tensor of Concat Operator
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.divide module

@created on: 2020-01-09,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.divide.Divide(name: str, dividend: typing.Union[str, tensorflow.python.framework.ops.Tensor], divisor: typing.Union[str, tensorflow.python.framework.ops.Tensor], outputs: str = None)[source]

Bases: tensorflow.python.keras.engine.base_layer.Layer, rztdl.dl.components.operators.operator.Operator

Divide Operator

Parameters:
  • name (str) – name of component
  • dividend (Union[str, Tensor]) – Dividend Tensor
  • divisor (Union[str, Tensor]) – Divisor Tensor
  • outputs (Optional[str]) – output of component
call(inputs)[source]
create(dividend, divisor)[source]
validate(dividend, divisor)[source]

rztdl.dl.components.operators.primitive.flatten module

@created on: 26/12/19,
@author: Shubham,
@version: v0.0.1

Description:

*Sphinx Documentation Status:

class rztdl.dl.components.operators.primitive.flatten.Flatten(name: str, data_format: rztdl.dl.constants.string_constants.DataFormat = None, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.core.Flatten, rztdl.dl.components.operators.operator.Operator

Flatten Operator

Parameters:
  • name (str) – component name
  • data_format (Optional[DataFormat]) – ordering of dimensions in the input
  • inputs (Union[str, Tensor, None]) – Input Tensor
  • outputs (Optional[str]) – 1D array
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.multiply module

@created on: 2020-01-09,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.multiply.Multiply(name: str, inputs: typing.List[typing.Union[str, tensorflow.python.framework.ops.Tensor]], outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.merge.Multiply, rztdl.dl.components.operators.operator.Operator

Multiply Operator

Parameters:
  • name (str) – component name
  • inputs (List[Union[str, Tensor]]) – list of tensor/tensor_names to be multiplied
  • outputs (Optional[str]) – A tensor, the element-wise product of the inputs
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.reshape module

@created on: 25/12/19,
@author: Shubham,
@version: v0.0.1

Description:

*Sphinx Documentation Status:

class rztdl.dl.components.operators.primitive.reshape.Reshape(name: str, target_shape: typing.List[int], inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.core.Reshape, rztdl.dl.components.operators.operator.Operator

Reshape Operator

Parameters:
  • name (str) – name of component
  • target_shape (List[int]) – shape of o/p
  • inputs (Union[str, Tensor, None]) – Input Tensor
  • outputs (Optional[str]) – Output Tensor
create(inputs)[source]
parameter_validation(target_shape, name)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.split module

@created on: 16/12/19,
@author: Umesh Kumar,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.split.Split(name: str, axis: int, outputs: typing.List[str], num_or_size_splits: typing.Union[int, typing.List[int]] = None, inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None)[source]

Bases: tensorflow.python.keras.engine.base_layer.Layer, rztdl.dl.components.operators.operator.Operator

call(inputs, **kwargs)[source]
classmethod component_blueprint()[source]
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.subtract module

@created on: 2020-01-09,
@author: shubham,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete

class rztdl.dl.components.operators.primitive.subtract.Subtract(name: str, inputs: typing.List[typing.Union[str, tensorflow.python.framework.ops.Tensor]], outputs: str = None)[source]

Bases: tensorflow.python.keras.layers.merge.Subtract, rztdl.dl.components.operators.operator.Operator

Subtract Operator

Parameters:
  • name (str) – Name of instance
  • inputs (List[Union[str, Tensor]]) – Input tensors
  • outputs (Optional[str]) – Output Tensor
create(inputs)[source]
validate(inputs)[source]

rztdl.dl.components.operators.primitive.tile module

@created on: 1/29/20, @author: Vivek A Gupta,

Description:

..todo:

.. py:class:: Tile(name: str, multiples: typing.List[int], inputs: typing.Union[str, tensorflow.python.framework.ops.Tensor] = None, outputs: str = None)
module:rztdl.dl.components.operators.primitive.tile

Bases: tensorflow.python.keras.engine.base_layer.Layer, rztdl.dl.components.operators.operator.Operator

Tile Operator

type name:str
param name:Name of the operator
type inputs:Union[str, Tensor, None]
param inputs:Input
type outputs:Optional[str]
param outputs:Output
type multiples:List[int]
param multiples:
 Length must be the same as the number of dimensions in input
Tile.call(inputs, **kwargs)[source]
Tile.create(inputs)[source]
Tile.parameter_validation(multiples)[source]
Tile.validate(inputs)[source]

Module contents

@created on: 16/12/19,
@author: Umesh Kumar,
@version: v0.0.1

Description:

Sphinx Documentation Status: Complete