Skip to content

Can't determine whether an API call is from TensorFlow when more than two functions are in a call chain #49

Closed
@tatianacv

Description

@tatianacv

When processing the following:

import tensorflow as tf

def func2(t):
  pass

@tf.function
def func():
  a = tf.constant([[1.0, 2.0], [3.0, 4.0]])
  b = tf.constant([[1.0, 1.0], [0.0, 1.0]])
  c = tf.matmul(a, b)
  tensor = tf.Tensor(c.op, 0, tf.float32)
  func2(tensor)

func()

We found an error in determining whether we are dealing with a TensorFlow API. We found that the tensor analysis is empty:

TensorTypeAnalysis analysis = E.performAnalysis(builder);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions