LatexifyNotSupportedError: Unsupported AST: Slice | tensorflow

Author: maifeeulasadCreated May 5, 2024Updated May 5, 2024
Labelsfeature

Description

I was trying to convert my tensorflow methods into latex code, and for that I was planning to use latexify.

If you have an idea about the solution you'd like, describe details about it. Here is the code for it:

import tensorflow as tf
import latexify

@latexify.function
def min_max_layer(inputs):
    return tf.math.minimum(inputs[:, 0], inputs[:, 1]), tf.math.maximum(inputs[:, 0], inputs[:, 1])

min_max_layer

But it gives me LatexifyNotSupportedError: Unsupported AST: Slice

Ideas of the solution

No idea

Alternative ideas

No alternate idea

Additional context

No context