MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/lite/python/lite.py:298–312  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected