tf 函数中的 Conv2D 初始化错误
/lustre/home/mo-txirouch/google/layers.py:73 __call__ * /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/utils.py:27 _decorate_unbound_method * return decorator_fn(bound_method, self, args, kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/base.py:272 wrap_with_name_scope * return method(*args, **kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/conv.py:117 __call__ * self._initialize(inputs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/utils.py:27 _decorate_unbound_method * return decorator_fn(bound_method, self, args, kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/once.py:93 wrapper * _check_no_output(wrapped(*args, **kwargs)) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/utils.py:27 _decorate_unbound_method * return decorator_fn(bound_method, self, args, kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/base.py:272 wrap_with_name_scope * return method(*args, **kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/conv.py:143 _initialize * self.w = self._make_w() /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/utils.py:27 _decorate_unbound_method * return decorator_fn(bound_method, self, args, kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/base.py:272 wrap_with_name_scope * return method(*args, **kwargs) /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/sonnet/src/conv.py:167 _make_w * return tf.Variable(self.w_init(weight_shape, self._dtype), name="w") /home/mo-txirouch/.conda/envs/google/lib/python3.7/site-packages/tensorflow/Python/ops/variables.py:262 __call__ **
内容来源: google-deepmind/sonnet