| 34 | template float TypeCast(const int &x); |
| 35 | |
| 36 | Tensor::~Tensor() { |
| 37 | if (block_ != nullptr && block_->DecRefCount() == 0) { |
| 38 | device_->FreeBlock(block_); |
| 39 | } |
| 40 | block_ = nullptr; |
| 41 | } |
| 42 | |
| 43 | Tensor::Tensor() { |
| 44 | device_ = defaultDevice; |
nothing calls this directly
no test coverage detected