Class PytorchQAInputMarshaller<I extends org.gridgain.ml.model.MlJobParameters>

java.lang.Object
org.apache.ignite.example.ml.pytorchtranslator.PytorchQAInputMarshaller<I>
All Implemented Interfaces:
Serializable, org.apache.ignite.marshalling.ByteArrayMarshaller<I>, org.apache.ignite.marshalling.Marshaller<I,byte[]>

public class PytorchQAInputMarshaller<I extends org.gridgain.ml.model.MlJobParameters> extends Object implements org.apache.ignite.marshalling.ByteArrayMarshaller<I>, Serializable
Handles serialization and deserialization for PyTorch QA jobs.

Converts job parameters to and from byte arrays for transmission between client and server.

See Also:
  • Constructor Details

    • PytorchQAInputMarshaller

      public PytorchQAInputMarshaller()
  • Method Details

    • marshal

      public byte[] marshal(I obj) throws org.apache.ignite.marshalling.MarshallingException
      Specified by:
      marshal in interface org.apache.ignite.marshalling.ByteArrayMarshaller<I extends org.gridgain.ml.model.MlJobParameters>
      Specified by:
      marshal in interface org.apache.ignite.marshalling.Marshaller<I extends org.gridgain.ml.model.MlJobParameters,byte[]>
      Throws:
      org.apache.ignite.marshalling.MarshallingException
    • unmarshal

      public I unmarshal(byte[] data) throws org.apache.ignite.marshalling.UnmarshallingException
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.ByteArrayMarshaller<I extends org.gridgain.ml.model.MlJobParameters>
      Specified by:
      unmarshal in interface org.apache.ignite.marshalling.Marshaller<I extends org.gridgain.ml.model.MlJobParameters,byte[]>
      Throws:
      org.apache.ignite.marshalling.UnmarshallingException