tensor_shape_go_proto

package
v1.12.2-0...-1b6f133 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TensorShapeProto

type TensorShapeProto struct {
	// Dimensions of the tensor, such as {"input", 30}, {"output", 40}
	// for a 30 x 40 2D tensor.  If an entry has size -1, this
	// corresponds to a dimension of unknown size. The names are
	// optional.
	//
	// The order of entries in "dim" matters: It indicates the layout of the
	// values in the tensor in-memory representation.
	//
	// The first entry in "dim" is the outermost dimension used to layout the
	// values, the last entry is the innermost dimension.  This matches the
	// in-memory layout of RowMajor Eigen tensors.
	//
	// If "dim.size()" > 0, "unknown_rank" must be false.
	Dim []*TensorShapeProto_Dim `protobuf:"bytes,2,rep,name=dim,proto3" json:"dim,omitempty"`
	// If true, the number of dimensions in the shape is unknown.
	//
	// If true, "dim.size()" must be 0.
	UnknownRank          bool     `protobuf:"varint,3,opt,name=unknown_rank,json=unknownRank,proto3" json:"unknown_rank,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Dimensions of a tensor.

func (*TensorShapeProto) Descriptor

func (*TensorShapeProto) Descriptor() ([]byte, []int)

func (*TensorShapeProto) GetDim

func (m *TensorShapeProto) GetDim() []*TensorShapeProto_Dim

func (*TensorShapeProto) GetUnknownRank

func (m *TensorShapeProto) GetUnknownRank() bool

func (*TensorShapeProto) ProtoMessage

func (*TensorShapeProto) ProtoMessage()

func (*TensorShapeProto) Reset

func (m *TensorShapeProto) Reset()

func (*TensorShapeProto) String

func (m *TensorShapeProto) String() string

func (*TensorShapeProto) XXX_DiscardUnknown

func (m *TensorShapeProto) XXX_DiscardUnknown()

func (*TensorShapeProto) XXX_Marshal

func (m *TensorShapeProto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TensorShapeProto) XXX_Merge

func (m *TensorShapeProto) XXX_Merge(src proto.Message)

func (*TensorShapeProto) XXX_Size

func (m *TensorShapeProto) XXX_Size() int

func (*TensorShapeProto) XXX_Unmarshal

func (m *TensorShapeProto) XXX_Unmarshal(b []byte) error

type TensorShapeProto_Dim

type TensorShapeProto_Dim struct {
	// Size of the tensor in that dimension.
	// This value must be >= -1, but values of -1 are reserved for "unknown"
	// shapes (values of -1 mean "unknown" dimension).  Certain wrappers
	// that work with TensorShapeProto may fail at runtime when deserializing
	// a TensorShapeProto containing a dim value of -1.
	Size int64 `protobuf:"varint,1,opt,name=size,proto3" json:"size,omitempty"`
	// Optional name of the tensor dimension.
	Name                 string   `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

One dimension of the tensor.

func (*TensorShapeProto_Dim) Descriptor

func (*TensorShapeProto_Dim) Descriptor() ([]byte, []int)

func (*TensorShapeProto_Dim) GetName

func (m *TensorShapeProto_Dim) GetName() string

func (*TensorShapeProto_Dim) GetSize

func (m *TensorShapeProto_Dim) GetSize() int64

func (*TensorShapeProto_Dim) ProtoMessage

func (*TensorShapeProto_Dim) ProtoMessage()

func (*TensorShapeProto_Dim) Reset

func (m *TensorShapeProto_Dim) Reset()

func (*TensorShapeProto_Dim) String

func (m *TensorShapeProto_Dim) String() string

func (*TensorShapeProto_Dim) XXX_DiscardUnknown

func (m *TensorShapeProto_Dim) XXX_DiscardUnknown()

func (*TensorShapeProto_Dim) XXX_Marshal

func (m *TensorShapeProto_Dim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*TensorShapeProto_Dim) XXX_Merge

func (m *TensorShapeProto_Dim) XXX_Merge(src proto.Message)

func (*TensorShapeProto_Dim) XXX_Size

func (m *TensorShapeProto_Dim) XXX_Size() int

func (*TensorShapeProto_Dim) XXX_Unmarshal

func (m *TensorShapeProto_Dim) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL