tensor_range_t Derived Type

type, public :: tensor_range_t


Inherited by

type~~tensor_range_t~~InheritedByGraph type~tensor_range_t tensor_range_t type~exchange_t exchange_t type~exchange_t->type~tensor_range_t input_range_, output_range_ type~inference_engine_t inference_engine_t type~inference_engine_t->type~tensor_range_t input_range_, output_range_ type~trainable_engine_t trainable_engine_t type~trainable_engine_t->type~tensor_range_t input_range_, output_range_

Components

Type Visibility Attributes Name Initial
character(len=:), private, allocatable :: layer_
real, private, allocatable, dimension(:) :: maxima_
real, private, allocatable, dimension(:) :: minima_

Constructor

public interface tensor_range_t

  • private pure module function from_components(layer, minima, maxima) result(tensor_range)

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in) :: layer
    real, intent(in), dimension(:) :: minima
    real, intent(in), dimension(:) :: maxima

    Return Value type(tensor_range_t)

  • private module function from_json(lines) result(tensor_range)

    Arguments

    Type IntentOptional Attributes Name
    type(string_t), intent(in) :: lines(:)

    Return Value type(tensor_range_t)


Type-Bound Procedures

procedure, public :: in_range

  • interface

    private elemental module function in_range(self, tensor) result(is_in_range)

    Arguments

    Type IntentOptional Attributes Name
    class(tensor_range_t), intent(in) :: self
    type(tensor_t), intent(in) :: tensor

    Return Value logical

procedure, public :: map_from_training_range

  • interface

    private elemental module function map_from_training_range(self, tensor) result(unnormalized_tensor)

    Arguments

    Type IntentOptional Attributes Name
    class(tensor_range_t), intent(in) :: self
    type(tensor_t), intent(in) :: tensor

    Return Value type(tensor_t)

procedure, public :: map_to_training_range

  • interface

    private elemental module function map_to_training_range(self, tensor) result(normalized_tensor)

    Arguments

    Type IntentOptional Attributes Name
    class(tensor_range_t), intent(in) :: self
    type(tensor_t), intent(in) :: tensor

    Return Value type(tensor_t)

generic, public :: operator(==) => equals

  • private interface equals()

    Arguments

    None

procedure, public :: to_json

  • interface

    private pure module function to_json(self) result(lines)

    Arguments

    Type IntentOptional Attributes Name
    class(tensor_range_t), intent(in) :: self

    Return Value type(string_t), allocatable, (:)

procedure, private :: equals

  • interface

    private elemental module function equals(lhs, rhs) result(lhs_equals_rhs)

    Arguments

    Type IntentOptional Attributes Name
    class(tensor_range_t), intent(in) :: lhs
    class(tensor_range_t), intent(in) :: rhs

    Return Value logical