Home / Function/ from() — pytorch Function Reference

from() — pytorch Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2825dd25_f9eb_ceef_8d41_63bda7c47342["from()"]
  f0795017_33b4_06dc_ad99_d769a6eb57c1["IValue()"]
  2825dd25_f9eb_ceef_8d41_63bda7c47342 -->|calls| f0795017_33b4_06dc_ad99_d769a6eb57c1
  style 2825dd25_f9eb_ceef_8d41_63bda7c47342 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

android/pytorch_android/src/main/java/org/pytorch/IValue.java lines 145–150

  @DoNotStrip
  public static IValue from(Tensor tensor) {
    final IValue iv = new IValue(TYPE_CODE_TENSOR);
    iv.mData = tensor;
    return iv;
  }

Subdomains

Calls

Frequently Asked Questions

What does from() do?
from() is a function in the pytorch codebase.
What does from() call?
from() calls 1 function(s): IValue.

Analyze Your Own Codebase

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

Try Supermodel Free