ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more

Module: tfg.rendering.utils

Various util functions common for all rasterizers.

Functions

dim_value(...)

merge_batch_dims(...): Merges all dimensions into one starting from 0 till last_axis exluding.

restore_batch_dims(...): Unpack first dimension into batch_shape, preserving the rest of the dimensions.

transform_homogeneous(...): Applies 4x4 homogenous matrix transformations to xyz vertices.