MCPcopy Create free account
hub / github.com/apache/singa / scale_by_range

Method scale_by_range

python/singa/image_tool.py:251–257  ·  view source on GitHub ↗

Args: rng: a tuple (begin,end), include begin, exclude end inplace: inplace imgs or not ( return new_imgs)

(self, rng, inplace=True)

Source from the content-addressed store, hash-verified

249 pass
250
251 def scale_by_range(self, rng, inplace=True):
252 '''
253 Args:
254 rng: a tuple (begin,end), include begin, exclude end
255 inplace: inplace imgs or not ( return new_imgs)
256 '''
257 return self.resize_by_range(rng, inplace)
258
259 def scale_by_list(self, size_list, num_case=1, inplace=True):
260 '''

Callers

nothing calls this directly

Calls 1

resize_by_rangeMethod · 0.95

Tested by

no test coverage detected