Class/Object

io.hydrosphere.serving.tensorflow.api.predict

PredictRequest

Related Docs: object PredictRequest | package predict

Permalink

final case class PredictRequest(modelSpec: Option[ModelSpec] = None, inputs: Map[String, TensorProto] = ..., outputFilter: Seq[String] = _root_.scala.collection.Seq.empty) extends GeneratedMessage with Message[PredictRequest] with Updatable[PredictRequest] with Product with Serializable

PredictRequest specifies which TensorFlow model to run, as well as how inputs are mapped to tensors and how outputs are filtered before returning to user.

modelSpec

Model Specification.

inputs

Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.

outputFilter

Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.

Annotations
@SerialVersionUID()
Linear Supertypes
Product, Equals, Updatable[PredictRequest], Message[PredictRequest], GeneratedMessage, Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PredictRequest
  2. Product
  3. Equals
  4. Updatable
  5. Message
  6. GeneratedMessage
  7. Serializable
  8. Serializable
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PredictRequest(modelSpec: Option[ModelSpec] = None, inputs: Map[String, TensorProto] = ..., outputFilter: Seq[String] = _root_.scala.collection.Seq.empty)

    Permalink

    modelSpec

    Model Specification.

    inputs

    Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.

    outputFilter

    Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def addAllInputs(__vs: TraversableOnce[(String, TensorProto)]): PredictRequest

    Permalink
  5. def addAllOutputFilter(__vs: TraversableOnce[String]): PredictRequest

    Permalink
  6. def addInputs(__vs: (String, TensorProto)*): PredictRequest

    Permalink
  7. def addOutputFilter(__vs: String*): PredictRequest

    Permalink
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clearInputs: PredictRequest

    Permalink
  10. def clearModelSpec: PredictRequest

    Permalink
  11. def clearOutputFilter: PredictRequest

    Permalink
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def companion: PredictRequest.type

    Permalink
    Definition Classes
    PredictRequest → GeneratedMessage
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getField(__field: FieldDescriptor): PValue

    Permalink
    Definition Classes
    PredictRequest → GeneratedMessage
  18. def getFieldByNumber(__fieldNumber: Int): Any

    Permalink
    Definition Classes
    PredictRequest → GeneratedMessage
  19. def getModelSpec: ModelSpec

    Permalink
  20. val inputs: Map[String, TensorProto]

    Permalink

    Input tensors.

    Input tensors. Names of input tensor are alias names. The mapping from aliases to real input tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'inputs' field.

  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def mergeFrom(_input__: CodedInputStream): PredictRequest

    Permalink
    Definition Classes
    PredictRequest → Message
  23. val modelSpec: Option[ModelSpec]

    Permalink

    Model Specification.

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. val outputFilter: Seq[String]

    Permalink

    Output filter.

    Output filter. Names specified are alias names. The mapping from aliases to real output tensor names is stored in the SavedModel export as a prediction SignatureDef under the 'outputs' field. Only tensors specified here will be run/fetched and returned, with the exception that when none is specified, all tensors specified in the named signature will be run/fetched and returned.

  28. final def serializedSize: Int

    Permalink
    Definition Classes
    PredictRequest → GeneratedMessage
  29. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  30. def toByteArray: Array[Byte]

    Permalink
    Definition Classes
    GeneratedMessage
  31. def toByteString: ByteString

    Permalink
    Definition Classes
    GeneratedMessage
  32. def toPMessage: PMessage

    Permalink
    Definition Classes
    GeneratedMessage
  33. def toString(): String

    Permalink
    Definition Classes
    PredictRequest → AnyRef → Any
  34. def update(ms: (Lens[PredictRequest, PredictRequest]) ⇒ Mutation[PredictRequest]*): PredictRequest

    Permalink
    Definition Classes
    Updatable
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. def withInputs(__v: Map[String, TensorProto]): PredictRequest

    Permalink
  39. def withModelSpec(__v: ModelSpec): PredictRequest

    Permalink
  40. def withOutputFilter(__v: Seq[String]): PredictRequest

    Permalink
  41. def writeDelimitedTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage
  42. def writeTo(_output__: CodedOutputStream): Unit

    Permalink
    Definition Classes
    PredictRequest → GeneratedMessage
  43. def writeTo(output: OutputStream): Unit

    Permalink
    Definition Classes
    GeneratedMessage

Deprecated Value Members

  1. def getAllFields: Map[FieldDescriptor, Any]

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use toPMessage

  2. def getField(field: FieldDescriptor): Any

    Permalink
    Definition Classes
    GeneratedMessage
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) Use getField that accepts a ScalaPB descriptor and returns PValue

Inherited from Product

Inherited from Equals

Inherited from Updatable[PredictRequest]

Inherited from Message[PredictRequest]

Inherited from GeneratedMessage

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped