Package 

Class EValue


  • 
    public final class EValue
    
                        

    Java representation of an ExecuTorch value, which is implemented as tagged union that can be one of the supported types: https://pytorch.org/docs/stable/jit.html#types .

    Calling toX methods for inappropriate types will throw IllegalStateException.

    EValue objects are constructed with EValue.from(value), depending on the value type.

    Data is retrieved from EValue objects with the toX() methods. Note that str-type EValues must be extracted with toStr, rather than toString.

    EValue objects may retain references to objects passed into their constructors, and may return references to their internal state from toX().

    Warning: These APIs are experimental and subject to change without notice