tf-keras-skeleton.py 文件源码

python
阅读 38 收藏 0 点赞 0 评论 0

项目:LIE 作者: EmbraceLife 项目源码 文件源码
def get(identifier):
      if identifier is None:
        return linear
      if isinstance(identifier, six.string_types):
        identifier = str(identifier)
        return deserialize(identifier)
      elif callable(identifier):
        if isinstance(identifier, Layer):
          logging.warning(
              'Do not pass a layer instance (such as {identifier}) as the '
              'activation argument of another layer. Instead, advanced '
              'activation layers should be used just like any other '
              'layer in a model.'.format(identifier=identifier.__class__.__name__))
        return identifier
      else:
        raise ValueError('Could not interpret '
                         'activation function identifier:', identifier)

## backend.py
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号