Skip to content

πŸš€[FEA]: Add "log1p" and "expm1" support for Node.from_sympyΒ #78

@052279

Description

@052279

Is this a new feature, an improvement, or a change to existing functionality?

Improvement

How would you describe the priority of this feature request

Medium

Please provide a clear description of problem you would like to solve.

I want to use log1p and expm1 in Node.from_sympy, but it raises error in SympyToTorch.forward.
I think it would be possible to support these functions by including 'log1p': torch.log1p and 'expm1': torch.expm1 in TORCH_SYMPY_PRINTER.

Describe any alternatives you have considered

It is also possible to use log(1+Symol('x')) instead of log1p, but it will not be accurate for small values of x.

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestexternalIssues/PR filed by people outside the core team

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions