attr_value_go_proto

package
v0.0.0-...-88323db Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: Apache-2.0, BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_tensorflow_core_framework_attr_value_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AttrValue

type AttrValue struct {

	// Types that are assignable to Value:
	//
	//	*AttrValue_S
	//	*AttrValue_I
	//	*AttrValue_F
	//	*AttrValue_B
	//	*AttrValue_Type
	//	*AttrValue_Shape
	//	*AttrValue_Tensor
	//	*AttrValue_List
	//	*AttrValue_Func
	//	*AttrValue_Placeholder
	Value isAttrValue_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

Protocol buffer representing the value for an attr used to configure an Op. Comment indicates the corresponding attr type. Only the field matching the attr type may be filled.

func (*AttrValue) Descriptor deprecated

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

Deprecated: Use AttrValue.ProtoReflect.Descriptor instead.

func (*AttrValue) GetB

func (x *AttrValue) GetB() bool

func (*AttrValue) GetF

func (x *AttrValue) GetF() float32

func (*AttrValue) GetFunc

func (x *AttrValue) GetFunc() *NameAttrList

func (*AttrValue) GetI

func (x *AttrValue) GetI() int64

func (*AttrValue) GetList

func (x *AttrValue) GetList() *AttrValue_ListValue

func (*AttrValue) GetPlaceholder

func (x *AttrValue) GetPlaceholder() string

func (*AttrValue) GetS

func (x *AttrValue) GetS() []byte

func (*AttrValue) GetShape

func (*AttrValue) GetTensor

func (x *AttrValue) GetTensor() *tensor_go_proto.TensorProto

func (*AttrValue) GetType

func (x *AttrValue) GetType() types_go_proto.DataType

func (*AttrValue) GetValue

func (m *AttrValue) GetValue() isAttrValue_Value

func (*AttrValue) ProtoMessage

func (*AttrValue) ProtoMessage()

func (*AttrValue) ProtoReflect

func (x *AttrValue) ProtoReflect() protoreflect.Message

func (*AttrValue) Reset

func (x *AttrValue) Reset()

func (*AttrValue) String

func (x *AttrValue) String() string

type AttrValue_B

type AttrValue_B struct {
	B bool `protobuf:"varint,5,opt,name=b,proto3,oneof"` // "bool"
}

type AttrValue_F

type AttrValue_F struct {
	F float32 `protobuf:"fixed32,4,opt,name=f,proto3,oneof"` // "float"
}

type AttrValue_Func

type AttrValue_Func struct {
	// "func" represents a function. func.name is a function's name or
	// a primitive op's name. func.attr.first is the name of an attr
	// defined for that function. func.attr.second is the value for
	// that attr in the instantiation.
	Func *NameAttrList `protobuf:"bytes,10,opt,name=func,proto3,oneof"`
}

type AttrValue_I

type AttrValue_I struct {
	I int64 `protobuf:"varint,3,opt,name=i,proto3,oneof"` // "int"
}

type AttrValue_List

type AttrValue_List struct {
	List *AttrValue_ListValue `protobuf:"bytes,1,opt,name=list,proto3,oneof"` // any "list(...)"
}

type AttrValue_ListValue

type AttrValue_ListValue struct {
	S      [][]byte                                  `protobuf:"bytes,2,rep,name=s,proto3" json:"s,omitempty"`                                        // "list(string)"
	I      []int64                                   `protobuf:"varint,3,rep,packed,name=i,proto3" json:"i,omitempty"`                                // "list(int)"
	F      []float32                                 `protobuf:"fixed32,4,rep,packed,name=f,proto3" json:"f,omitempty"`                               // "list(float)"
	B      []bool                                    `protobuf:"varint,5,rep,packed,name=b,proto3" json:"b,omitempty"`                                // "list(bool)"
	Type   []types_go_proto.DataType                 `protobuf:"varint,6,rep,packed,name=type,proto3,enum=tensorflow.DataType" json:"type,omitempty"` // "list(type)"
	Shape  []*tensor_shape_go_proto.TensorShapeProto `protobuf:"bytes,7,rep,name=shape,proto3" json:"shape,omitempty"`                                // "list(shape)"
	Tensor []*tensor_go_proto.TensorProto            `protobuf:"bytes,8,rep,name=tensor,proto3" json:"tensor,omitempty"`                              // "list(tensor)"
	Func   []*NameAttrList                           `protobuf:"bytes,9,rep,name=func,proto3" json:"func,omitempty"`                                  // "list(attr)"
	// contains filtered or unexported fields
}

LINT.IfChange

func (*AttrValue_ListValue) Descriptor deprecated

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

Deprecated: Use AttrValue_ListValue.ProtoReflect.Descriptor instead.

func (*AttrValue_ListValue) GetB

func (x *AttrValue_ListValue) GetB() []bool

func (*AttrValue_ListValue) GetF

func (x *AttrValue_ListValue) GetF() []float32

func (*AttrValue_ListValue) GetFunc

func (x *AttrValue_ListValue) GetFunc() []*NameAttrList

func (*AttrValue_ListValue) GetI

func (x *AttrValue_ListValue) GetI() []int64

func (*AttrValue_ListValue) GetS

func (x *AttrValue_ListValue) GetS() [][]byte

func (*AttrValue_ListValue) GetShape

func (*AttrValue_ListValue) GetTensor

func (*AttrValue_ListValue) GetType

func (*AttrValue_ListValue) ProtoMessage

func (*AttrValue_ListValue) ProtoMessage()

func (*AttrValue_ListValue) ProtoReflect

func (x *AttrValue_ListValue) ProtoReflect() protoreflect.Message

func (*AttrValue_ListValue) Reset

func (x *AttrValue_ListValue) Reset()

func (*AttrValue_ListValue) String

func (x *AttrValue_ListValue) String() string

type AttrValue_Placeholder

type AttrValue_Placeholder struct {
	// This is a placeholder only used in nodes defined inside a
	// function.  It indicates the attr value will be supplied when
	// the function is instantiated.  For example, let us suppose a
	// node "N" in function "FN". "N" has an attr "A" with value
	// placeholder = "foo". When FN is instantiated with attr "foo"
	// set to "bar", the instantiated node N's attr A will have been
	// given the value "bar".
	Placeholder string `protobuf:"bytes,9,opt,name=placeholder,proto3,oneof"`
}

type AttrValue_S

type AttrValue_S struct {
	S []byte `protobuf:"bytes,2,opt,name=s,proto3,oneof"` // "string"
}

type AttrValue_Shape

type AttrValue_Shape struct {
	Shape *tensor_shape_go_proto.TensorShapeProto `protobuf:"bytes,7,opt,name=shape,proto3,oneof"` // "shape"
}

type AttrValue_Tensor

type AttrValue_Tensor struct {
	Tensor *tensor_go_proto.TensorProto `protobuf:"bytes,8,opt,name=tensor,proto3,oneof"` // "tensor"
}

type AttrValue_Type

type AttrValue_Type struct {
	Type types_go_proto.DataType `protobuf:"varint,6,opt,name=type,proto3,enum=tensorflow.DataType,oneof"` // "type"
}

type NameAttrList

type NameAttrList struct {
	Name string                `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Attr map[string]*AttrValue `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

A list of attr names and their values. The whole list is attached with a string name. E.g., MatMul[T=float].

func (*NameAttrList) Descriptor deprecated

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

Deprecated: Use NameAttrList.ProtoReflect.Descriptor instead.

func (*NameAttrList) GetAttr

func (x *NameAttrList) GetAttr() map[string]*AttrValue

func (*NameAttrList) GetName

func (x *NameAttrList) GetName() string

func (*NameAttrList) ProtoMessage

func (*NameAttrList) ProtoMessage()

func (*NameAttrList) ProtoReflect

func (x *NameAttrList) ProtoReflect() protoreflect.Message

func (*NameAttrList) Reset

func (x *NameAttrList) Reset()

func (*NameAttrList) String

func (x *NameAttrList) String() string

Jump to

Keyboard shortcuts

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