ATen icon indicating copy to clipboard operation
ATen copied to clipboard

There should be an approved "forward declaration" header for Tensor

Open ezyang opened this issue 6 years ago • 0 comments

Right now, there are ad hoc forward declarations of at::Tensor in ScalarType and a few other headers. This means that if you transitively include these headers, you get a forward declaration of at::Tensor in scope. But should you directly include these headers to get an at::Tensor forward declaration? Probably not...

ezyang avatar Nov 10 '17 01:11 ezyang