Home / Function/ checkTensorSize() — pytorch Function Reference

checkTensorSize() — pytorch Function Reference

Architecture documentation for the checkTensorSize() function in TensorImageUtils.java from the pytorch codebase.

Entity Profile

Dependency Diagram

graph TD
  091f809b_08d7_75e4_b6a4_9d012fd740cb["checkTensorSize()"]
  e7383de7_aca7_58ff_fd0d_6065330d96d2["imageYUV420CenterCropToFloat32Tensor()"]
  e7383de7_aca7_58ff_fd0d_6065330d96d2 -->|calls| 091f809b_08d7_75e4_b6a4_9d012fd740cb
  5ed98bb2_a3e0_69aa_a5c4_dffa35d89514["imageYUV420CenterCropToFloatBuffer()"]
  5ed98bb2_a3e0_69aa_a5c4_dffa35d89514 -->|calls| 091f809b_08d7_75e4_b6a4_9d012fd740cb
  style 091f809b_08d7_75e4_b6a4_9d012fd740cb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android_torchvision/src/main/java/org/pytorch/torchvision/TensorImageUtils.java lines 372–376

  private static void checkTensorSize(int tensorWidth, int tensorHeight) {
    if (tensorHeight <= 0 || tensorWidth <= 0) {
      throw new IllegalArgumentException("tensorHeight and tensorWidth must be positive");
    }
  }

Subdomains

Frequently Asked Questions

What does checkTensorSize() do?
checkTensorSize() is a function in the pytorch codebase.
What calls checkTensorSize()?
checkTensorSize() is called by 2 function(s): imageYUV420CenterCropToFloat32Tensor, imageYUV420CenterCropToFloatBuffer.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free