Documentation ¶
Index ¶
- Variables
- type Blob
- func (b *Blob) Add(other *Blob) error
- func (b *Blob) AxesNum() int
- func (b *Blob) Capacity() int64
- func (b *Blob) Channels() int64
- func (b *Blob) Copy() *Blob
- func (b *Blob) DataString() string
- func (b *Blob) Dot(other *Blob) (*Blob, error)
- func (b *Blob) Exp()
- func (b *Blob) Get(index []int) float64
- func (b *Blob) GetCol(index []int, x int) (*Blob, error)
- func (b *Blob) GetRow(index []int, x int) (*Blob, error)
- func (b *Blob) GetTop(num int) []Value
- func (b *Blob) Height() int64
- func (b *Blob) L1Norm() float64
- func (b *Blob) L2Norm() float64
- func (b *Blob) LegacyShape(index int) int64
- func (b *Blob) MMul(x *Blob) (*Blob, error)
- func (b *Blob) Mul(other *Blob) (float64, error)
- func (b *Blob) Num() int64
- func (b *Blob) Offset(indices []int) int
- func (b *Blob) Powx(x float64)
- func (b *Blob) Range(indices1, indices2 []int) (*Blob, error)
- func (b *Blob) Reshape(index []int64) (*Blob, error)
- func (b *Blob) Scale(scale float64)
- func (b *Blob) Set(index []int, value float64)
- func (b *Blob) SetNumChannel(index0, index1 int, other *Blob) error
- func (b *Blob) Shape() []int64
- func (b *Blob) ShapeEquals(other *Blob) bool
- func (b *Blob) ShapeOfIndex(index int) int64
- func (b *Blob) Shift(shift float64)
- func (b *Blob) String() string
- func (b *Blob) Sub(other *Blob) *Blob
- func (b *Blob) ToProto() ([]byte, error)
- func (b *Blob) Trans() *Blob
- func (b *Blob) Width() int64
- type SortValue
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidShape indicates invalid shape array, i.e. a certern value is // less than or equal 0 ErrInvalidShape = errors.New("invalid shape") // ErrExceedMaxAxes indicates exceed maximum axes error ErrExceedMaxAxes = errors.New("shape exceed maximum axes(32)") )
Functions ¶
This section is empty.
Types ¶
type Blob ¶
type Blob struct {
// contains filtered or unexported fields
}
Blob is the basic data container in gocaffe
func (*Blob) DataString ¶
func (*Blob) LegacyShape ¶
LegacyShape return index shape in the legacy
func (*Blob) Range ¶
Range returns a new Blob between two input indices, currently used for convolution
func (*Blob) ShapeEquals ¶
ShapeEquals returns whether two blob have the same shape
func (*Blob) ShapeOfIndex ¶
ShapeOfIndex returns the shape in the input index
Click to show internal directories.
Click to hide internal directories.