Skip to content

Conversation

@madgetr
Copy link

@madgetr madgetr commented Oct 29, 2025

This pr removes the heavy tensorflow dependency.

Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>
Signed-off-by: Trevor Madge <tmadge@paloaltonetworks.com>

# Get the path to the data directory
data_dir = os.path.join(os.path.dirname(__file__), "..", "..", "data")
operators_file = os.path.join(data_dir, "tensorflow_operators.json")
Copy link
Collaborator

@ethansilvas ethansilvas Oct 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative approach instead of os.path might be cleaner. Maybe even want to just not use JSON and instead just a saved python object/dict of what we had originally

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curious how we determined these where the required things we needed to vendor + is this a list we'll need to maintain, and if so how will we know what to add?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this approach is the best idea given needing to maintain these files to be in line with new versions of tensorflow in the future

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this approach is the best idea given needing to maintain these files to be in line with new versions of tensorflow in the future

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants