Skip to content

[PT FE] Support aten::smooth_l1_loss#29637

Closed
johnrhimawan wants to merge 1 commit intoopenvinotoolkit:masterfrom
johnrhimawan:johnrhimawan/pt_fe/smooth_l1_loss
Closed

[PT FE] Support aten::smooth_l1_loss#29637
johnrhimawan wants to merge 1 commit intoopenvinotoolkit:masterfrom
johnrhimawan:johnrhimawan/pt_fe/smooth_l1_loss

Conversation

@johnrhimawan
Copy link
Contributor

@johnrhimawan johnrhimawan commented Mar 24, 2025

Details:

  • adding support for aten::smooth_l1_loss

Tickets:

@github-actions github-actions bot added the category: PyTorch FE OpenVINO PyTorch Frontend label Mar 24, 2025
@sys-openvino-ci sys-openvino-ci added the ExternalPR External contributor label Mar 24, 2025
@johnrhimawan johnrhimawan marked this pull request as ready for review March 29, 2025 10:18
@johnrhimawan johnrhimawan requested a review from a team as a code owner March 29, 2025 10:18
Copy link
Contributor

@mvafin mvafin left a comment

Choose a reason for hiding this comment

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

Please also fix code style

auto beta = node.get_attribute<float>("beta", 1.0);

// Create constants with input's element type
auto beta_const = v0::Constant::create(input.get_element_type(), Shape{}, {beta});
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
auto beta_const = v0::Constant::create(input.get_element_type(), Shape{}, {beta});
auto beta_const = v0::Constant::create(input.get_element_type(), Shape{}, {beta});

Do not use get_element_type from input to create constant. Input type can be unknown - dynamic. Your tests fail because of that.
Use ConvertLike instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you for the comments and suggestions, I'll try get working on that :)

@mlukasze mlukasze linked an issue Apr 15, 2025 that may be closed by this pull request
@mlukasze
Copy link
Contributor

hey @ johnrhimawan any progress here?

@mlukasze mlukasze linked an issue Apr 15, 2025 that may be closed by this pull request
@johnrhimawan
Copy link
Contributor Author

hey @ johnrhimawan any progress here?

Hi sorry I'm still in a busy period with university, but I'll get on it after 👍

@mlukasze
Copy link
Contributor

sure, education first.
let us know later will you continue work on it, or need any support.

@mlukasze mlukasze closed this May 21, 2025
@johnrhimawan johnrhimawan deleted the johnrhimawan/pt_fe/smooth_l1_loss branch May 27, 2025 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: PyTorch FE OpenVINO PyTorch Frontend ExternalPR External contributor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Good First Issue]: Support aten::smooth_l1_loss [Good First Issue]: Support aten::smooth_l1_loss

4 participants