internal/cmds/gen_tensor.go
// Code generated DO NOT EDIT
package cmds
import "strconv"
type AiTensorget Incomplete
func (b Builder) AiTensorget() (c AiTensorget) {
c = AiTensorget{cs: get(), ks: b.ks, cf: int16(readonly)}
c.cs.s = append(c.cs.s, "AI.TENSORGET")
return c
}
func (c AiTensorget) Key(key string) AiTensorgetKey {
if c.ks&NoSlot == NoSlot {
c.ks = NoSlot | slot(key)
} else {
c.ks = check(c.ks, slot(key))
}
c.cs.s = append(c.cs.s, key)
return (AiTensorgetKey)(c)
}
type AiTensorgetFormatBlob Incomplete
func (c AiTensorgetFormatBlob) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiTensorgetFormatBlob) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiTensorgetFormatValues Incomplete
func (c AiTensorgetFormatValues) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiTensorgetFormatValues) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiTensorgetKey Incomplete
func (c AiTensorgetKey) Meta() AiTensorgetMeta {
c.cs.s = append(c.cs.s, "META")
return (AiTensorgetMeta)(c)
}
type AiTensorgetMeta Incomplete
func (c AiTensorgetMeta) Blob() AiTensorgetFormatBlob {
c.cs.s = append(c.cs.s, "BLOB")
return (AiTensorgetFormatBlob)(c)
}
func (c AiTensorgetMeta) Values() AiTensorgetFormatValues {
c.cs.s = append(c.cs.s, "VALUES")
return (AiTensorgetFormatValues)(c)
}
func (c AiTensorgetMeta) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
func (c AiTensorgetMeta) Cache() Cacheable {
c.cs.Build()
return Cacheable{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiTensorset Incomplete
func (b Builder) AiTensorset() (c AiTensorset) {
c = AiTensorset{cs: get(), ks: b.ks}
c.cs.s = append(c.cs.s, "AI.TENSORSET")
return c
}
func (c AiTensorset) Key(key string) AiTensorsetKey {
if c.ks&NoSlot == NoSlot {
c.ks = NoSlot | slot(key)
} else {
c.ks = check(c.ks, slot(key))
}
c.cs.s = append(c.cs.s, key)
return (AiTensorsetKey)(c)
}
type AiTensorsetBlob Incomplete
func (c AiTensorsetBlob) Values(value ...string) AiTensorsetValues {
c.cs.s = append(c.cs.s, "VALUES")
c.cs.s = append(c.cs.s, value...)
return (AiTensorsetValues)(c)
}
func (c AiTensorsetBlob) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiTensorsetKey Incomplete
func (c AiTensorsetKey) Float() AiTensorsetTypeFloat {
c.cs.s = append(c.cs.s, "FLOAT")
return (AiTensorsetTypeFloat)(c)
}
func (c AiTensorsetKey) Double() AiTensorsetTypeDouble {
c.cs.s = append(c.cs.s, "DOUBLE")
return (AiTensorsetTypeDouble)(c)
}
func (c AiTensorsetKey) Int8() AiTensorsetTypeInt8 {
c.cs.s = append(c.cs.s, "INT8")
return (AiTensorsetTypeInt8)(c)
}
func (c AiTensorsetKey) Int16() AiTensorsetTypeInt16 {
c.cs.s = append(c.cs.s, "INT16")
return (AiTensorsetTypeInt16)(c)
}
func (c AiTensorsetKey) Int32() AiTensorsetTypeInt32 {
c.cs.s = append(c.cs.s, "INT32")
return (AiTensorsetTypeInt32)(c)
}
func (c AiTensorsetKey) Int64() AiTensorsetTypeInt64 {
c.cs.s = append(c.cs.s, "INT64")
return (AiTensorsetTypeInt64)(c)
}
func (c AiTensorsetKey) Uint8() AiTensorsetTypeUint8 {
c.cs.s = append(c.cs.s, "UINT8")
return (AiTensorsetTypeUint8)(c)
}
func (c AiTensorsetKey) Uint16() AiTensorsetTypeUint16 {
c.cs.s = append(c.cs.s, "UINT16")
return (AiTensorsetTypeUint16)(c)
}
func (c AiTensorsetKey) String() AiTensorsetTypeString {
c.cs.s = append(c.cs.s, "STRING")
return (AiTensorsetTypeString)(c)
}
func (c AiTensorsetKey) Bool() AiTensorsetTypeBool {
c.cs.s = append(c.cs.s, "BOOL")
return (AiTensorsetTypeBool)(c)
}
type AiTensorsetShape Incomplete
func (c AiTensorsetShape) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return c
}
func (c AiTensorsetShape) Blob(blob string) AiTensorsetBlob {
c.cs.s = append(c.cs.s, "BLOB", blob)
return (AiTensorsetBlob)(c)
}
func (c AiTensorsetShape) Values(value ...string) AiTensorsetValues {
c.cs.s = append(c.cs.s, "VALUES")
c.cs.s = append(c.cs.s, value...)
return (AiTensorsetValues)(c)
}
func (c AiTensorsetShape) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}
type AiTensorsetTypeBool Incomplete
func (c AiTensorsetTypeBool) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeDouble Incomplete
func (c AiTensorsetTypeDouble) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeFloat Incomplete
func (c AiTensorsetTypeFloat) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeInt16 Incomplete
func (c AiTensorsetTypeInt16) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeInt32 Incomplete
func (c AiTensorsetTypeInt32) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeInt64 Incomplete
func (c AiTensorsetTypeInt64) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeInt8 Incomplete
func (c AiTensorsetTypeInt8) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeString Incomplete
func (c AiTensorsetTypeString) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeUint16 Incomplete
func (c AiTensorsetTypeUint16) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetTypeUint8 Incomplete
func (c AiTensorsetTypeUint8) Shape(shape ...int64) AiTensorsetShape {
for _, n := range shape {
c.cs.s = append(c.cs.s, strconv.FormatInt(n, 10))
}
return (AiTensorsetShape)(c)
}
type AiTensorsetValues Incomplete
func (c AiTensorsetValues) Values(value ...string) AiTensorsetValues {
c.cs.s = append(c.cs.s, "VALUES")
c.cs.s = append(c.cs.s, value...)
return c
}
func (c AiTensorsetValues) Build() Completed {
c.cs.Build()
return Completed{cs: c.cs, cf: uint16(c.cf), ks: c.ks}
}