TensorProto

onnx.onnx.TensorProto
See theTensorProto companion class
object TensorProto extends GeneratedMessageCompanion[TensorProto]

Attributes

Companion
class
Graph
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[TensorProto]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type

Members list

Type members

Classlikes

sealed abstract class DataLocation(val value: Int) extends GeneratedEnum

Location of the data for this tensor. MUST be one of:

Location of the data for this tensor. MUST be one of:

  • DEFAULT - data stored inside the protobuf message. Data is stored in raw_data (if set) otherwise in type-specified field.
  • EXTERNAL - data stored in an external location as described by external_data field.

Attributes

Companion
object
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object DEFAULT.type
object EXTERNAL.type
trait Recognized
class Unrecognized
object DataLocation extends GeneratedEnumCompanion[DataLocation]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait GeneratedEnumCompanion[DataLocation]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
sealed abstract class DataType(val value: Int) extends GeneratedEnum

Attributes

Companion
object
Supertypes
trait GeneratedEnum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object BFLOAT16.type
object BOOL.type
object COMPLEX128.type
object COMPLEX64.type
object DOUBLE.type
object FLOAT.type
object FLOAT16.type
object INT16.type
object INT32.type
object INT64.type
object INT8.type
trait Recognized
object STRING.type
object UINT16.type
object UINT32.type
object UINT64.type
object UINT8.type
object UNDEFINED.type
class Unrecognized
Show all
object DataType extends GeneratedEnumCompanion[DataType]

Attributes

Companion
class
Supertypes
trait Sum
trait Mirror
trait GeneratedEnumCompanion[DataType]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
DataType.type
final case class Segment(begin: Option[Long], end: Option[Long], unknownFields: UnknownFieldSet) extends GeneratedMessage, Updatable[Segment]

For very large tensors, we may want to store them in chunks, in which case the following fields will specify the segment that is stored in the current TensorProto.

For very large tensors, we may want to store them in chunks, in which case the following fields will specify the segment that is stored in the current TensorProto.

Attributes

Companion
object
Supertypes
trait Updatable[Segment]
trait GeneratedMessage
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Segment extends GeneratedMessageCompanion[Segment]

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
trait GeneratedMessageCompanion[Segment]
trait Serializable
class Object
trait Matchable
class Any
Show all
Self type
Segment.type
implicit class TensorProtoLens[UpperPB](_l: Lens[UpperPB, TensorProto]) extends ObjectLens[UpperPB, TensorProto]

Attributes

Supertypes
class ObjectLens[UpperPB, TensorProto]
trait Lens[UpperPB, TensorProto]
trait Serializable
class Object
trait Matchable
class Any
Show all

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Attributes

Inherited from:
Mirror
type ValueType = A

Attributes

Inherited from:
GeneratedMessageCompanion

Value members

Concrete methods

def enumCompanionForFieldNumber(`__fieldNumber`: Int): GeneratedEnumCompanion[_]
def javaDescriptor: Descriptor

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not avaialable in Scala.js or scala-native.

Returns the Java descriptors for this message. It is recommended to use scalaDescriptors. The Java descriptors are available even when Java conversions is disabled, however they are not avaialable in Scala.js or scala-native.

Attributes

def messageCompanionForFieldNumber(`__number`: Int): GeneratedMessageCompanion[_]
def of(dims: Seq[Long], dataType: Option[Int], segment: Option[Segment], floatData: Seq[Float], int32Data: Seq[Int], stringData: Seq[ByteString], int64Data: Seq[Long], name: Option[String], docString: Option[String], rawData: Option[ByteString], externalData: Seq[StringStringEntryProto], dataLocation: Option[DataLocation], doubleData: Seq[Double], uint64Data: Seq[Long]): TensorProto
def parseFrom(`_input__`: CodedInputStream): TensorProto

Parses a message from a CodedInputStream.

Parses a message from a CodedInputStream.

Attributes

def scalaDescriptor: Descriptor

Inherited methods

def enumCompanionForField(field: FieldDescriptor): GeneratedEnumCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def fromAscii(s: String): A

Attributes

Inherited from:
GeneratedMessageCompanion
def merge(a: TensorProto, input: CodedInputStream): A

Merges the given message with the additional fields in the steam.

Merges the given message with the additional fields in the steam.

Attributes

Inherited from:
GeneratedMessageCompanion
def messageCompanionForField(field: FieldDescriptor): GeneratedMessageCompanion[_]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: InputStream): Option[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseDelimitedFrom(input: CodedInputStream): Option[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(s: Array[Byte]): A

Attributes

Inherited from:
GeneratedMessageCompanion
def parseFrom(input: InputStream): A

Attributes

Inherited from:
GeneratedMessageCompanion
def streamFromDelimitedInput(input: InputStream): Stream[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def toByteArray(a: TensorProto): Array[Byte]

Attributes

Inherited from:
GeneratedMessageCompanion
def validate(s: Array[Byte]): Try[A]

Attributes

Inherited from:
GeneratedMessageCompanion
def validateAscii(s: String): Either[TextFormatError, A]

Attributes

Inherited from:
GeneratedMessageCompanion

Concrete fields

final val DATA_TYPE_FIELD_NUMBER: 2
final val DIMS_FIELD_NUMBER: 1
final val DOC_STRING_FIELD_NUMBER: 12
final val DOUBLE_DATA_FIELD_NUMBER: 10
final val NAME_FIELD_NUMBER: 8
final val RAW_DATA_FIELD_NUMBER: 9
final val SEGMENT_FIELD_NUMBER: 3
final val UINT64_DATA_FIELD_NUMBER: 11
lazy val nestedMessagesCompanions: Seq[GeneratedMessageCompanion[_ <: GeneratedMessage]]

Implicits

Implicits

final implicit def TensorProtoLens[UpperPB](_l: Lens[UpperPB, TensorProto]): TensorProtoLens[UpperPB]
implicit def messageCompanion: GeneratedMessageCompanion[TensorProto]
implicit def messageReads: Reads[TensorProto]