Skip to content

Conversation

mattdangerw
Copy link
Member

Keras is doing it, and we should follow suit. keras-team/keras#20445

But also it's simpler and faster!

Copy link
Member

@SamanehSaadat SamanehSaadat left a comment

Choose a reason for hiding this comment

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

Thanks, Matt!

CONTRIBUTING.md Outdated
## Formatting Code

We use `flake8`, `isort` and `black` for code formatting. You can run
Keras uses [Ruff](https://docs.astral.sh/ruff/) to format the code. You can run
Copy link
Member

Choose a reason for hiding this comment

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

Don't we want to say KerasHub instead of Keras here?

x: Input tensor of shape (batch_size, input_dim).
Returns:
KerasTensor: The RMS-normalized tensor of the same shape (batch_size, input_dim),
Copy link
Member

Choose a reason for hiding this comment

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

Did Ruff automatically removed KerasTensor from here or you removed it manually? 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed it manually while fixing line length issues. We can return either a kerastensor (symbolic tensor) or torch or jax or tf tensor. Better to just say tensor and shorter for line length.

@mattdangerw mattdangerw merged commit c72a4aa into keras-team:master Dec 13, 2024
10 checks passed
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.

2 participants