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
  bdbf63f2_5e13_4e45_78f0_d8e4731e57e5["checkTensorSize()"]
  da0052aa_0d0f_9bda_a558_296d9703af6b["imageYUV420CenterCropToFloat32Tensor()"]
  da0052aa_0d0f_9bda_a558_296d9703af6b -->|calls| bdbf63f2_5e13_4e45_78f0_d8e4731e57e5
  96f1f166_e465_73ae_edbc_0841f2cf1414["imageYUV420CenterCropToFloatBuffer()"]
  96f1f166_e465_73ae_edbc_0841f2cf1414 -->|calls| bdbf63f2_5e13_4e45_78f0_d8e4731e57e5
  style bdbf63f2_5e13_4e45_78f0_d8e4731e57e5 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