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

Function get_shape

tensorflow/lite/testing/generate_examples_lib.py:2216–2224  ·  view source on GitHub ↗

Return a tweaked version of 'base_shape'.

(parameters, delta)

Source from the content-addressed store, hash-verified

2214 }]
2215
2216 def get_shape(parameters, delta):
2217 """Return a tweaked version of 'base_shape'."""
2218 axis = parameters["axis"]
2219 shape = parameters["base_shape"][:]
2220 if axis < 0:
2221 axis += len(shape)
2222 if axis < len(shape):
2223 shape[axis] += delta
2224 return shape
2225
2226 def build_graph(parameters):
2227 all_tensors = []

Callers 2

build_graphFunction · 0.70
build_inputsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected