.. meta::
   :description: Code sample demonstrating the use of the hipBLASLt library
   :keywords: hipBLASLt, ROCm, library, API, code sample

.. _sample_hipblaslt_ext_op_layernorm:

**********************************************
Converting a 2D tensor using LayerNorm
**********************************************

This code sample from ``clients/samples/22_hipblaslt_ext_op_layernorm/sample_hipblaslt_ext_op_layernorm.cpp``
converts a 2D tensor using LayerNorm to generate a new 2D normalized tensor.

.. literalinclude:: ../../clients/samples/22_hipblaslt_ext_op_layernorm/sample_hipblaslt_ext_op_layernorm.cpp
   :language: c++
