Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Conversation

@kimishpatel
Copy link
Contributor

Summary:
ProfiledTensorType's sizes returns optional. Changes to
reflect that.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:
ProfiledTensorType's sizes returns optional<ListofInts>. Changes to
reflect that.

Test Plan:

Reviewers:

Subscribers:

Tasks:

Tags:
"Expected CPU device type but got:", device_type);
tvm::Array<tvm::relay::IndexExpr> sizes;
const auto& varying_sizes = pt_t->sizes();
for (const auto& optional_size : varying_sizes.sizes()) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's weird that I had met with use out of scope ASAN error if I just chain the calls together.

@kimishpatel kimishpatel merged commit d2149b0 into pytorch:master Aug 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants