latexify_py icon indicating copy to clipboard operation
latexify_py copied to clipboard

LatexifyNotSupportedError: Unsupported AST: Slice | tensorflow

Open maifeeulasad opened this issue 1 year ago • 0 comments

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

maifeeulasad avatar May 05 '24 10:05 maifeeulasad