Skip to content

Improve Fake Tensor Error When Data Ptr is Accessed #92580

@eellison

Description

@eellison

🐛 Describe the bug

The error is not very informative as is:

The tensor has a non-zero number of elements, but its data is not allocated yet. Caffe2 uses a lazy allocation, so you will need to call mutable_data() or raw_mutable_data() to actually allocate memory.?

Versions

...

Metadata

Metadata

Assignees

Labels

module: fakeTensortriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions