Skip to content

How to use layer_norm or LayerNormalization with tf.keras #782

Closed

Description

@lijianxin520

How to use layer_norm or LayerNormalization with tf.keras?
tf.contrib.layers.layer_norm

Activity

  1. self-assigned this
    on Apr 24, 2021
  2. added
    missing feature/s
    on Apr 24, 2021
  3. Oceania2018 commented on Apr 24, 2021

    @Oceania2018
    Member
  4. lindadamama commented on Nov 11, 2021

    @lindadamama
  5. lindadamama commented on Nov 11, 2021

    @lindadamama

    Shouldn't BatchNormalization and LayerNormalization be two different methods?

  6. Oceania2018 commented on Nov 11, 2021

    @Oceania2018
    Member

    @lindadamama Sorry, my mistake. I will add this task in to-do-list.
    https://keras.io/api/layers/normalization_layers/layer_normalization/

  7. Wanglongzhi2001 commented on Nov 13, 2023

    @Wanglongzhi2001
    Contributor

    Close Due to layernormalization has been developed, please reopen if you still have question, thanks!

  8. MattCW1701 commented on Feb 25, 2025

    @MattCW1701

    I know this is old, but are there any examples of actually using this? I can't add it to a Sequential Model since Sequential.Add() expects an object derived from BaseLayer and not Tensorflow.Keras.Layer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

missing feature/s

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions