File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
com.ibm.wala.cast.python.ml/source/com/ibm/wala/cast/python/ml/client Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 33import static com .ibm .wala .cast .python .ml .client .RaggedConstant .Parameters .INNER_SHAPE ;
44import static com .ibm .wala .cast .python .ml .client .RaggedConstant .Parameters .RAGGED_RANK ;
55import static com .ibm .wala .cast .python .ml .types .TensorFlowTypes .DType .FLOAT32 ;
6+ import static com .ibm .wala .cast .python .ml .types .TensorFlowTypes .TYPE_REFERENCE_TO_SIGNATURE ;
67import static com .ibm .wala .cast .python .types .PythonTypes .Root ;
78import static com .ibm .wala .cast .python .types .PythonTypes .list ;
89import static com .ibm .wala .cast .python .types .PythonTypes .tuple ;
910import static com .ibm .wala .cast .python .util .Util .getAllocationSiteInNode ;
11+ import static com .ibm .wala .cast .python .util .Util .getFunction ;
1012import static com .ibm .wala .core .util .strings .Atom .findOrCreateAsciiAtom ;
1113import static java .lang .Math .max ;
1214import static java .util .Collections .emptySet ;
@@ -478,4 +480,15 @@ protected EnumSet<DType> getDefaultDTypes(PropagationCallGraphBuilder builder) {
478480 // Otherwise, there are values available to infer the dtype from.
479481 return super .getDefaultDTypes (builder );
480482 }
483+
484+ /**
485+ * Returns the TensorFlow function signature represented by this generator.
486+ *
487+ * @return The TensorFlow function signature represented by this generator.
488+ */
489+ @ Override
490+ protected String getSignature () {
491+ TypeReference function = getFunction (this .getSource ());
492+ return TYPE_REFERENCE_TO_SIGNATURE .get (function );
493+ }
481494}
You can’t perform that action at this time.
0 commit comments