<!--
This file is generated by a tool. Do not edit directly.
For open-source contributions the docs will be updated automatically.
-->

*Last updated: 2023-03-16.*

<div itemscope itemtype="http://developers.google.com/ReferenceObject">
<meta itemprop="name" content="tf_quant_finance.utils" />
<meta itemprop="path" content="Stable" />
</div>

# Module: tf_quant_finance.utils

<!-- Insert buttons and diff -->

<table class="tfo-notebook-buttons tfo-api" align="left">
</table>

<a target="_blank" href="https://github.com/paolodelia99/tf-quant-finance/blob/main/tf_quant_finance/utils/__init__.py">View source</a>



Utilities module.



## Functions

[`broadcast_common_batch_shape(...)`](../tf_quant_finance/utils/broadcast_common_batch_shape.md): Broadcasts argument batch shapes to the common shape.

[`broadcast_tensors(...)`](../tf_quant_finance/utils/broadcast_tensors.md): Broadcasts arguments to the common shape.

[`common_shape(...)`](../tf_quant_finance/utils/common_shape.md): Returns common shape for a sequence of Tensors.

[`dataclass(...)`](../tf_quant_finance/utils/dataclass.md): Creates a data class object compatible with `tf.function`.

[`get_shape(...)`](../tf_quant_finance/utils/get_shape.md): Returns static shape of `x` if it is fully defined, or dynamic, otherwise.

[`iterate_nested(...)`](../tf_quant_finance/utils/iterate_nested.md): Creates an iterator over every leaf value in depth first order.

