MCPcopy Create free account
hub / github.com/QWTforGithub/T2LDM / _build_tf_graph

Method _build_tf_graph

timm/data/tf_preprocessing.py:214–222  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

212 self.sess = None
213
214 def _build_tf_graph(self):
215 with tf.device('/cpu:0'):
216 self._image_bytes = tf.placeholder(
217 shape=[],
218 dtype=tf.string,
219 )
220 img = preprocess_image(
221 self._image_bytes, self.is_training, False, self.size, self.interpolation)
222 return img
223
224 def __call__(self, image_bytes):
225 if self.sess is None:

Callers 1

__init__Method · 0.95

Calls 2

preprocess_imageFunction · 0.85
deviceMethod · 0.80

Tested by

no test coverage detected