tf-keras-skeleton.py 文件源码

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

项目:LIE 作者: EmbraceLife 项目源码 文件源码
def get_config(self):
            if isinstance(self.function, python_types.LambdaType):
              function = func_dump(self.function)
              function_type = 'lambda'
            else:
              function = self.function.__name__
              function_type = 'function'

            config = {
                'function': function,
                'function_type': function_type,
                'arguments': self.arguments
            }
            base_config = super(Lambda, self).get_config()
            return dict(list(base_config.items()) + list(config.items()))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号