Documentation
¶
Index ¶
- type Float
- type IterMulti
- type IterND
- type IterStride
- type Tensor
- func Add[F Float](tensors ...*Tensor[F]) *Tensor[F]
- func AddS[F Float](t *Tensor[F], f F) *Tensor[F]
- func Apply[F Float](t *Tensor[F], fn func(F) F) *Tensor[F]
- func Apply2[F Float](a, b *Tensor[F], fn func(F, F) F) *Tensor[F]
- func Conv[F Float](x, w *Tensor[F], bias *Tensor[F], sH, sW, pH, pW int) *Tensor[F]
- func Div[F Float](a, b *Tensor[F]) *Tensor[F]
- func DivS[F Float](t *Tensor[F], f F) *Tensor[F]
- func FromGen[F Float](gen func(i ...int) F, shape ...int) *Tensor[F]
- func FromGen0[F Float](gen func() F, shape ...int) *Tensor[F]
- func FromGen1[F Float](gen func(i int) F, shape ...int) *Tensor[F]
- func Fs[F Float](f F, shape ...int) *Tensor[F]
- func FsLike[F Float](f F, t *Tensor[F]) *Tensor[F]
- func MatMul[F Float](a, b *Tensor[F]) *Tensor[F]
- func Mul[F Float](tensors ...*Tensor[F]) *Tensor[F]
- func MulS[F Float](t *Tensor[F], f F) *Tensor[F]
- func Neg[F Float](t *Tensor[F]) *Tensor[F]
- func New[F Float](data []F, shape ...int) *Tensor[F]
- func Ones[F Float](shape ...int) *Tensor[F]
- func OnesLike[F Float](t *Tensor[F]) *Tensor[F]
- func Rand[F Float](shape ...int) *Tensor[F]
- func RandLike[F Float](t *Tensor[F]) *Tensor[F]
- func Sub[F Float](a, b *Tensor[F]) *Tensor[F]
- func SubS[F Float](t *Tensor[F], f F) *Tensor[F]
- func Zeros[F Float](shape ...int) *Tensor[F]
- func ZerosLike[F Float](t *Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) Add(tensors ...*Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) AddS(f F) *Tensor[F]
- func (t *Tensor[F]) Apply(fn func(F) F) *Tensor[F]
- func (t *Tensor[F]) Apply2(s *Tensor[F], fn func(F, F) F) *Tensor[F]
- func (t *Tensor[F]) ArgMax() (F, []int)
- func (t *Tensor[F]) ArgMin() (F, []int)
- func (t *Tensor[F]) Clone() *Tensor[F]
- func (t *Tensor[F]) Copy(to *Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) Div(s *Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) DivS(f F) *Tensor[F]
- func (t *Tensor[F]) Flatten() *Tensor[F]
- func (t *Tensor[F]) Get(index ...int) F
- func (t *Tensor[F]) IterND() *IterND
- func (t *Tensor[F]) IterStride() *IterStride
- func (t *Tensor[F]) MarshalJSON() ([]byte, error)
- func (t *Tensor[F]) MaskGE(f F) *Tensor[F]
- func (t *Tensor[F]) MaskLE(f F) *Tensor[F]
- func (t *Tensor[F]) MatMul(a, b *Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) Max() F
- func (t *Tensor[F]) Mean() F
- func (t *Tensor[F]) Min() F
- func (t *Tensor[F]) Mul(tensors ...*Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) MulS(f F) *Tensor[F]
- func (t *Tensor[F]) Neg() *Tensor[F]
- func (t *Tensor[F]) Pad(pads [][2]int, with F) *Tensor[F]
- func (t *Tensor[F]) Pad2D(u, d, l, r int, with F) *Tensor[F]
- func (t *Tensor[F]) Permute(axes ...int) *Tensor[F]
- func (t *Tensor[F]) Prod() F
- func (t *Tensor[F]) Reshape(shape ...int) *Tensor[F]
- func (t *Tensor[F]) ReverseAxes(axes ...int) *Tensor[F]
- func (t *Tensor[F]) Set(f F, index ...int)
- func (t *Tensor[F]) Size() int
- func (t *Tensor[F]) String() string
- func (t *Tensor[F]) Sub(s *Tensor[F]) *Tensor[F]
- func (t *Tensor[F]) SubS(f F) *Tensor[F]
- func (t *Tensor[F]) Sum() F
- func (t *Tensor[F]) SumAxes(axes ...int) *Tensor[F]
- func (t *Tensor[F]) T() *Tensor[F]
- func (t *Tensor[F]) UnmarshalJSON(b []byte) error
- func (t *Tensor[F]) Var() F
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IterMulti ¶
type IterMulti struct {
// contains filtered or unexported fields
}
func NewIterMulti ¶
type IterStride ¶
type IterStride struct {
// contains filtered or unexported fields
}
func (*IterStride) Count ¶
func (it *IterStride) Count() int
func (*IterStride) Done ¶
func (it *IterStride) Done() bool
func (*IterStride) Index ¶
func (it *IterStride) Index() []int
func (*IterStride) Next ¶
func (it *IterStride) Next()
func (*IterStride) Offset ¶
func (it *IterStride) Offset() int
type Tensor ¶
func (*Tensor[F]) IterStride ¶
func (t *Tensor[F]) IterStride() *IterStride
func (*Tensor[F]) MarshalJSON ¶
func (*Tensor[F]) ReverseAxes ¶
func (*Tensor[F]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.