wala/ML

Remove the `expectedNumberOfTensorParameters` parameter

Open

#283 opened on Jul 11, 2025

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (17 forks)auto 404
cleanupgood first issuejavatesting

Repository metrics

Stars
 (27 stars)
PR merge metrics
 (PR metrics pending)

Description

Since expectedNumberOfTensorParameters must be equal to expectedTensorParameterValueNumbers.length, we can remove the expectedNumberOfTensorParameters parameter and just use expectedTensorParameterValueNumbers.

https://github.com/wala/ML/blob/53d2f0a82446e4913682249af7de1b270addb32a/com.ibm.wala.cast.python.ml.test/source/com/ibm/wala/cast/python/ml/test/TestTensorflow2Model.java#L3496-L3500

Contributor guide