@staticmethod<EOL><INDENT>def from_spec(spec, kwargs=None):<DEDENT>
layer = util.get_object(<EOL>obj=spec,<EOL>predefined_objects=tensorforce.core.networks.layers,<EOL>kwargs=kwargs<EOL>)<EOL>assert isinstance(layer, Layer)<EOL>return layer<EOL>
Creates a layer from a specification dict.