Constructor for TFLiteConverter. Args: funcs: List of TensorFlow ConcreteFunctions. The list should not contain duplicate elements. trackable_obj: tf.AutoTrackable object associated with `funcs`. A reference to this object needs to be maintained so that Variables do
(self, funcs, trackable_obj=None)
| 296 | """ |
| 297 | |
| 298 | def __init__(self, funcs, trackable_obj=None): |
| 299 | """Constructor for TFLiteConverter. |
| 300 | |
| 301 | Args: |
| 302 | funcs: List of TensorFlow ConcreteFunctions. The list should not contain |
| 303 | duplicate elements. |
| 304 | trackable_obj: tf.AutoTrackable object associated with `funcs`. A |
| 305 | reference to this object needs to be maintained so that Variables do not |
| 306 | get garbage collected since functions have a weak reference to |
| 307 | Variables. This is only required when the tf.AutoTrackable object is not |
| 308 | maintained by the user (e.g. `from_saved_model`). |
| 309 | """ |
| 310 | super(TFLiteConverterV2, self).__init__() |
| 311 | self._funcs = funcs |
| 312 | self._trackable_obj = trackable_obj |
| 313 | |
| 314 | @classmethod |
| 315 | def from_concrete_functions(cls, funcs): |