[英]Jupyter kernel dies trying to fit a Keras model with a custom layer
在本地和云 (kaggle) 上,当尝试适应 Keras model 时,笔记本死机(忘记任何导入或变量,停止单元的执行)。仅当架构中存在自定义层SingularityExtractor2D
时才会出现此问题.
你可以在这里找到笔记本: Github
自定义回调GateOfLearning
已经过多次测试,每次都能与任何 model 架构完美配合。 笔记本在GPU和CPU上都运行过,问题依旧。
当调用tf.ones
function 时,形状必须是(spatial_0, ..., spatialN-1, in_channels, out_channels)
而不是调用时层获得的张量的形状(batch_size, spatial_0, ..., spatial_N-1, channels)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.