Skip to content

Fixes https://github.com/csarofeen/pytorch/issues/292#293

Merged
csarofeen merged 2 commits into20_7_6_develfrom
seg_fault_lowering
Aug 14, 2020
Merged

Fixes https://github.com/csarofeen/pytorch/issues/292#293
csarofeen merged 2 commits into20_7_6_develfrom
seg_fault_lowering

Conversation

@csarofeen
Copy link
Copy Markdown
Owner

@csarofeen csarofeen commented Aug 14, 2020

Fixes: #292
CC: @tlemo


TensorView::TensorView(const fuser::TensorView* tv) : Val(tv), fuser_tv_(tv) {
domain_ = lowerValue(tv->domain())->as<TensorDomain>();
domain_ = lowerValue(tv->domain())->as<kir::TensorDomain>();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

please remove kir:: (not needed, we're already in the kir namespace)

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

There's a few kir:: instances in this file, might want to look through them.

domain_(ir_cloner->clone(src->domain_)),
memory_type_(src->memory_type_) {}
memory_type_(src->memory_type_),
fuser_tv_(src->fuser_tv_) {}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

good catch!


class TORCH_CUDA_API TensorView : public Val {
public:
TensorView(TensorDomain* domain, DataType dtype);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nice

@csarofeen csarofeen merged commit 8e27427 into 20_7_6_devel Aug 14, 2020
@csarofeen csarofeen deleted the seg_fault_lowering branch June 9, 2021 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lowering twice triggers assert

2 participants