Trait/Object

io.hydrosphere.serving.contract.utils

TypedTensor

Related Docs: object TypedTensor | package utils

Permalink

trait TypedTensor[T] extends AnyRef

At one time, TensorProto can only have one type of data. TypedTensor is a wrapper that ensures it, and provides simple access.

T

type of data field

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TypedTensor
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def get: Seq[T]

    Permalink

    Returns tensor contents from a field as flat Seq

    Returns tensor contents from a field as flat Seq

    returns

    flat data Seq

  2. abstract def put(data: Seq[T]): TensorProto

    Permalink

    Puts data to a field

    Puts data to a field

    data

    data

    returns

    tensor with new data

  3. abstract def tensorProto: TensorProto

    Permalink

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def castData(data: Seq[Any])(implicit ct: ClassTag[T]): Either[ValidationError, Seq[T]]

    Permalink

    Tries to convert data to tensor-specific type.

    Tries to convert data to tensor-specific type.

    data

    target data

    ct

    class tag to retrieve class info

    returns

    converted data or error

  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  12. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  16. def putAny(data: Seq[Any])(implicit ct: ClassTag[T]): Either[ValidationError, TensorProto]

    Permalink

    Tries to convert data to tensor-specific type and puts it to a field

    Tries to convert data to tensor-specific type and puts it to a field

    data

    data

    ct

    class tag to retrieve class info

    returns

    tensor with new data or error

  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped