singa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [singa] nudles commented on a change in pull request #667: Fix bugs of training
Date Wed, 08 Apr 2020 15:37:12 GMT
nudles commented on a change in pull request #667: Fix bugs of training
URL: https://github.com/apache/singa/pull/667#discussion_r405619166
 
 

 ##########
 File path: src/core/tensor/tensor.cc
 ##########
 @@ -161,6 +161,9 @@ Tensor Resize(const Tensor &in, const Shape &shape) {
 
 // return new tensor
 Tensor Tensor::AsType(const DataType type) {
+  CHECK(block() && block()->initialized() == true)
+      << "the data of the tensor needs be initialized before casting to "
 
 Review comment:
   this cannot fix the error. need to update the test case to reverse the two lines.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message