brainstorm/layers/base_layer.py
def _validate_in_shapes(self):
        """Ensure all in_shapes are valid by comparing to `expected_inputs`.

        Raises:
            LayerValidationError: if there are unrecognized inputs, missing
                                  inputs or inputs that don't match the
                                  `StructureTemplate` from `expected_inputs`.
        """
        in_shape_names = set(self.in_shapes.keys())
        input_names = set(self.expected_inputs.keys())

        if not in_shape_names.issubset(input_names):
            raise LayerValidationError(
                'Invalid in_shapes. {} has no input(s) named "{}". Choices '
                'are: {}'.format(self.name, in_shape_names - input_names,
                                 input_names))

        if not input_names.issubset(in_shape_names):
            raise LayerValidationError(
                '{}: All inputs need to be connected. Missing {}.'
                .format(self.name, input_names - in_shape_names))

        for input_name, in_shape in self.in_shapes.items():
            if not self.expected_inputs[input_name].matches(in_shape):
                raise LayerValidationError(
                    "{}: in_shape ({}) for {} doesn't match StructureTemplate "
                    "{}".format(self.name, in_shape, input_name,
                                self.expected_inputs[input_name]))
Ensure all in_shapes are valid by comparing to `expected_inputs`.

        Raises:
            LayerValidationError: if there are unrecognized inputs, missing
                                  inputs or inputs that don't match the
                                  `StructureTemplate` from `expected_inputs`.
        
Ensure all in_shapes are valid by comparing to `expected_inputs`.
Ensure all in_shapes are valid by comparing to ` expected_inputs ` .
def _validate_in_shapes(self):
        in_shape_names = set(self.in_shapes.keys())
        input_names = set(self.expected_inputs.keys())
        if not in_shape_names.issubset(input_names):
            raise LayerValidationError(
                'Invalid in_shapes. {} has no input(s) named "{}". Choices '
                'are: {}'.format(self.name, in_shape_names - input_names,
                                 input_names))
        if not input_names.issubset(in_shape_names):
            raise LayerValidationError(
                '{}: All inputs need to be connected. Missing {}.'
                .format(self.name, input_names - in_shape_names))
        for input_name, in_shape in self.in_shapes.items():
            if not self.expected_inputs[input_name].matches(in_shape):
                raise LayerValidationError(
                    "{}: in_shape ({}) for {} doesn't match StructureTemplate "
                    "{}".format(self.name, in_shape, input_name,
                                self.expected_inputs[input_name]))
def _validate_in_shapes ( self ) : in_shape_names = set ( self . in_shapes . keys ( ) ) input_names = set ( self . expected_inputs . keys ( ) ) if not in_shape_names . issubset ( input_names ) : raise LayerValidationError ( 'Invalid in_shapes. {} has no input(s) named "{}". Choices ' 'are: {}' . format ( self . name , in_shape_names - input_names , input_names ) ) if not input_names . issubset ( in_shape_names ) : raise LayerValidationError ( '{}: All inputs need to be connected. Missing {}.' . format ( self . name , input_names - in_shape_names ) ) for input_name , in_shape in self . in_shapes . items ( ) : if not self . expected_inputs [ input_name ] . matches ( in_shape ) : raise LayerValidationError ( "{}: in_shape ({}) for {} doesn't match StructureTemplate " "{}" . format ( self . name , in_shape , input_name , self . expected_inputs [ input_name ] ) )
Ensure all in_shapes are valid by comparing to `expected_inputs`.
Ensure all in_shapes are valid by comparing to ` expected_inputs ` .
"""Ensure all in_shapes are valid by comparing to `expected_inputs`.

        Raises:
            LayerValidationError: if there are unrecognized inputs, missing
                                  inputs or inputs that don't match the
                                  `StructureTemplate` from `expected_inputs`.
        """
if there are unrecognized inputs, missing
inputs or inputs that don't match the
`StructureTemplate` from `expected_inputs`.
if there are unrecognized inputs missing inputs or inputs that don ' t match the ` StructureTemplate ` from ` expected_inputs ` .
LayerValidationError
self