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

Function ResizeShapeFn

tensorflow/contrib/image/ops/image_ops.cc:63–68  ·  view source on GitHub ↗

TODO(qyu): Move this to core/framework/common_shape_fns.h

Source from the content-addressed store, hash-verified

61
62// TODO(qyu): Move this to core/framework/common_shape_fns.h
63Status ResizeShapeFn(InferenceContext* c) {
64 ShapeHandle input;
65 TF_RETURN_IF_ERROR(c->WithRank(c->input(0), 4, &input));
66 return SetOutputToSizedImage(c, c->Dim(input, 0), 2 /* size_input_idx */,
67 c->Dim(input, 3));
68}
69
70static const char kImageProjectiveTransformDoc[] = R"doc(
71Applies the given transform to each of the images.

Callers

nothing calls this directly

Calls 4

SetOutputToSizedImageFunction · 0.70
WithRankMethod · 0.45
inputMethod · 0.45
DimMethod · 0.45

Tested by

no test coverage detected