1. 首页
  2. 数据库
  3. 其它
  4. tf.keras.layers.Layer自定义层

tf.keras.layers.Layer自定义层

上传者: 2020-12-23 01:07:51上传 PDF文件 54KB 热度 15次
为了进一步了解上一篇中的class,搜了github如下示例: import tensorflow as tf class MyLayer(tf.keras.layers.Layer): def __init__(self, output_dim, **kwargs): self.output_dim = output_dim super(MyLayer, self).__init__(**kwargs) def build(self, input_shape): # Create a trainable weight vari
下载地址
用户评论