MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / getOutputTensorWidth

Function getOutputTensorWidth

react-native/pose-detection/App.tsx:232–241  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

230 };
231
232 const getOutputTensorWidth = () => {
233 // On iOS landscape mode, switch width and height of the output tensor to
234 // get better result. Without this, the image stored in the output tensor
235 // would be stretched too much.
236 //
237 // Same for getOutputTensorHeight below.
238 return isPortrait() || IS_ANDROID
239 ? OUTPUT_TENSOR_WIDTH
240 : OUTPUT_TENSOR_HEIGHT;
241 };
242
243 const getOutputTensorHeight = () => {
244 return isPortrait() || IS_ANDROID

Callers 2

renderPoseFunction · 0.85
AppFunction · 0.85

Calls 1

isPortraitFunction · 0.85

Tested by

no test coverage detected