slbo icon indicating copy to clipboard operation
slbo copied to clipboard

dtype not passed in weight_initializer

Open motiwari opened this issue 5 years ago • 0 comments

This line: https://github.com/roosephu/slbo/blob/master/lunzi/nn/layers.py#L20

Should be replaced with:

self.weight = Parameter(weight_initializer([in_features, out_features], dtype=tf.float32), name='weight')

It's missing the dtype parameter, which causes an exception. Will file a PR if I have time later

motiwari avatar Mar 17 '19 05:03 motiwari