Closed corochann closed 5 years ago
Merging #291 into master will increase coverage by
<.01%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #291 +/- ##
==========================================
+ Coverage 83.67% 83.68% +<.01%
==========================================
Files 165 165
Lines 7632 7636 +4
==========================================
+ Hits 6386 6390 +4
Misses 1246 1246
Merging #291 into master will increase coverage by
0.04%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #291 +/- ##
==========================================
+ Coverage 83.67% 83.71% +0.04%
==========================================
Files 165 165
Lines 7632 7657 +25
==========================================
+ Hits 6386 6410 +24
- Misses 1246 1247 +1
I got that error before PR (current status), and I hope it should be fixed after merging this PR.
memoryview is numpy array's data
attribute.
resolves https://github.com/pfnet-research/chainer-chemistry/issues/289
Metrics function can return normal array instead of Variable, so
self._convert_to_scalar(value(self.y, t).data
is not ok (when the returned value is array,.data
refer memoryview instead of actual value).