MCPcopy Create free account
hub / github.com/dengdan/seglink / _Check3DImage

Function _Check3DImage

preprocessing/tf_image.py:90–116  ·  view source on GitHub ↗

Assert that we are working with properly shaped image. Args: image: 3-D Tensor of shape [height, width, channels] require_static: If `True`, requires that all dimensions of `image` are known and non-zero. Raises: ValueError: if `image.shape` is not a 3-vector.

(image, require_static=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

random_flip_left_rightFunction · 0.85

Calls 1

get_shapeMethod · 0.80

Tested by

no test coverage detected