Add defined() to caffe2::Tensor (#16125)
authorJerry Zhang <jerryzh@fb.com>
Fri, 18 Jan 2019 18:59:53 +0000 (10:59 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 18 Jan 2019 19:03:36 +0000 (11:03 -0800)
commitda578b7dcf43bab88a3f0d407cb8a31c10a79557
treebfd233cb801630acba20649474fceae0113aa278
parentb9b160d86f47f9f960ac19cc156bdbcd7af83728
Add defined() to caffe2::Tensor (#16125)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16125

Add defined() method to check whether the Tensor is defined.

Reviewed By: ezyang

Differential Revision: D13719222

fbshipit-source-id: ff8efef2159ed1026bd16acaea40c768a1e20a47
caffe2/core/blob_test.cc
caffe2/core/tensor.h