framework

package
v2.14.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GeneratedCodeInfo_Type_name = map[int32]string{
		0: "NONE",
		1: "KYTHE0",
	}
	GeneratedCodeInfo_Type_value = map[string]int32{
		"NONE":   0,
		"KYTHE0": 1,
	}
)

Enum value maps for GeneratedCodeInfo_Type.

View Source
var (
	MappingRule_Type_name = map[int32]string{
		0: "NONE",
		1: "NOP",
		2: "ANCHOR_DEFINES",
		3: "ANCHOR_ANCHOR",
	}
	MappingRule_Type_value = map[string]int32{
		"NONE":           0,
		"NOP":            1,
		"ANCHOR_DEFINES": 2,
		"ANCHOR_ANCHOR":  3,
	}
)

Enum value maps for MappingRule_Type.

View Source
var (
	MappingRule_Semantic_name = map[int32]string{
		0: "SEMA_NONE",
		1: "SEMA_WRITE",
		2: "SEMA_READ_WRITE",
	}
	MappingRule_Semantic_value = map[string]int32{
		"SEMA_NONE":       0,
		"SEMA_WRITE":      1,
		"SEMA_READ_WRITE": 2,
	}
)

Enum value maps for MappingRule_Semantic.

View Source
var File_tensorflow_python_framework_cpp_shape_inference_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_python_framework_kythe_metadata_proto protoreflect.FileDescriptor
View Source
var File_tensorflow_python_framework_op_reg_offset_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CppShapeInferenceInputsNeeded

type CppShapeInferenceInputsNeeded struct {
	InputTensorsNeeded         []int32 `protobuf:"varint,1,rep,packed,name=input_tensors_needed,json=inputTensorsNeeded,proto3" json:"input_tensors_needed,omitempty"`
	InputTensorsAsShapesNeeded []int32 `` /* 153-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CppShapeInferenceInputsNeeded) Descriptor deprecated

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

Deprecated: Use CppShapeInferenceInputsNeeded.ProtoReflect.Descriptor instead.

func (*CppShapeInferenceInputsNeeded) GetInputTensorsAsShapesNeeded

func (x *CppShapeInferenceInputsNeeded) GetInputTensorsAsShapesNeeded() []int32

func (*CppShapeInferenceInputsNeeded) GetInputTensorsNeeded

func (x *CppShapeInferenceInputsNeeded) GetInputTensorsNeeded() []int32

func (*CppShapeInferenceInputsNeeded) ProtoMessage

func (*CppShapeInferenceInputsNeeded) ProtoMessage()

func (*CppShapeInferenceInputsNeeded) ProtoReflect

func (*CppShapeInferenceInputsNeeded) Reset

func (x *CppShapeInferenceInputsNeeded) Reset()

func (*CppShapeInferenceInputsNeeded) String

type CppShapeInferenceResult

type CppShapeInferenceResult struct {
	Shape      *framework.TensorShapeProto         `protobuf:"bytes,1,opt,name=shape,proto3" json:"shape,omitempty"`
	HandleData *CppShapeInferenceResult_HandleData `protobuf:"bytes,4,opt,name=handle_data,json=handleData,proto3" json:"handle_data,omitempty"`
	// contains filtered or unexported fields
}

LINT.IfChange

func (*CppShapeInferenceResult) Descriptor deprecated

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

Deprecated: Use CppShapeInferenceResult.ProtoReflect.Descriptor instead.

func (*CppShapeInferenceResult) GetHandleData

func (*CppShapeInferenceResult) GetShape

func (*CppShapeInferenceResult) ProtoMessage

func (*CppShapeInferenceResult) ProtoMessage()

func (*CppShapeInferenceResult) ProtoReflect

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

func (*CppShapeInferenceResult) Reset

func (x *CppShapeInferenceResult) Reset()

func (*CppShapeInferenceResult) String

func (x *CppShapeInferenceResult) String() string

type CppShapeInferenceResult_HandleData

type CppShapeInferenceResult_HandleData struct {
	IsSet bool `protobuf:"varint,1,opt,name=is_set,json=isSet,proto3" json:"is_set,omitempty"`
	// Only valid if <is_set>.
	ShapeAndType []*CppShapeInferenceResult_HandleShapeAndType `protobuf:"bytes,2,rep,name=shape_and_type,json=shapeAndType,proto3" json:"shape_and_type,omitempty"`
	// contains filtered or unexported fields
}

func (*CppShapeInferenceResult_HandleData) Descriptor deprecated

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

Deprecated: Use CppShapeInferenceResult_HandleData.ProtoReflect.Descriptor instead.

func (*CppShapeInferenceResult_HandleData) GetIsSet

func (*CppShapeInferenceResult_HandleData) GetShapeAndType

func (*CppShapeInferenceResult_HandleData) ProtoMessage

func (*CppShapeInferenceResult_HandleData) ProtoMessage()

func (*CppShapeInferenceResult_HandleData) ProtoReflect

func (*CppShapeInferenceResult_HandleData) Reset

func (*CppShapeInferenceResult_HandleData) String

type CppShapeInferenceResult_HandleShapeAndType

type CppShapeInferenceResult_HandleShapeAndType struct {
	Shape *framework.TensorShapeProto `protobuf:"bytes,1,opt,name=shape,proto3" json:"shape,omitempty"`
	Dtype framework.DataType          `protobuf:"varint,2,opt,name=dtype,proto3,enum=tensorflow.DataType" json:"dtype,omitempty"`
	Type  *framework.FullTypeDef      `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
	// contains filtered or unexported fields
}

func (*CppShapeInferenceResult_HandleShapeAndType) Descriptor deprecated

Deprecated: Use CppShapeInferenceResult_HandleShapeAndType.ProtoReflect.Descriptor instead.

func (*CppShapeInferenceResult_HandleShapeAndType) GetDtype

func (*CppShapeInferenceResult_HandleShapeAndType) GetShape

func (*CppShapeInferenceResult_HandleShapeAndType) GetType

func (*CppShapeInferenceResult_HandleShapeAndType) ProtoMessage

func (*CppShapeInferenceResult_HandleShapeAndType) ProtoReflect

func (*CppShapeInferenceResult_HandleShapeAndType) Reset

func (*CppShapeInferenceResult_HandleShapeAndType) String

type GeneratedCodeInfo added in v2.12.0

type GeneratedCodeInfo struct {
	Type GeneratedCodeInfo_Type `protobuf:"varint,1,opt,name=type,proto3,enum=tensorflow.GeneratedCodeInfo_Type" json:"type,omitempty"`
	Meta []*MappingRule         `protobuf:"bytes,2,rep,name=meta,proto3" json:"meta,omitempty"` // Only relevant if type == kythe0.
	// contains filtered or unexported fields
}

Schema for the JSON-encoded Kythe metadata describing the relationship between source and target code for generated code.

func (*GeneratedCodeInfo) Descriptor deprecated added in v2.12.0

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

Deprecated: Use GeneratedCodeInfo.ProtoReflect.Descriptor instead.

func (*GeneratedCodeInfo) GetMeta added in v2.12.0

func (x *GeneratedCodeInfo) GetMeta() []*MappingRule

func (*GeneratedCodeInfo) GetType added in v2.12.0

func (*GeneratedCodeInfo) ProtoMessage added in v2.12.0

func (*GeneratedCodeInfo) ProtoMessage()

func (*GeneratedCodeInfo) ProtoReflect added in v2.12.0

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

func (*GeneratedCodeInfo) Reset added in v2.12.0

func (x *GeneratedCodeInfo) Reset()

func (*GeneratedCodeInfo) String added in v2.12.0

func (x *GeneratedCodeInfo) String() string

type GeneratedCodeInfo_Type added in v2.12.0

type GeneratedCodeInfo_Type int32
const (
	GeneratedCodeInfo_NONE   GeneratedCodeInfo_Type = 0
	GeneratedCodeInfo_KYTHE0 GeneratedCodeInfo_Type = 1 // Initial metadata document type.
)

func (GeneratedCodeInfo_Type) Descriptor added in v2.12.0

func (GeneratedCodeInfo_Type) Enum added in v2.12.0

func (GeneratedCodeInfo_Type) EnumDescriptor deprecated added in v2.12.0

func (GeneratedCodeInfo_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use GeneratedCodeInfo_Type.Descriptor instead.

func (GeneratedCodeInfo_Type) Number added in v2.12.0

func (GeneratedCodeInfo_Type) String added in v2.12.0

func (x GeneratedCodeInfo_Type) String() string

func (GeneratedCodeInfo_Type) Type added in v2.12.0

type MappingRule added in v2.12.0

type MappingRule struct {
	Type MappingRule_Type `protobuf:"varint,1,opt,name=type,proto3,enum=tensorflow.MappingRule_Type" json:"type,omitempty"`
	// If type == anchor_defines, this should generally be a reverse generates
	// edge, %/kythe/edge/generates, indicating that the specified vname generated
	// the source range.
	// If type == anchor_anchor, this should generally be a forward imputes edge,
	// /kythe/edge/imputes, indicating that the range in the source file produced
	// the text in the target file.
	// If semantic is not NONE, this field is ignored and the identified
	// declaration at the indicated text range is given the associated semantic.
	Edge string `protobuf:"bytes,2,opt,name=edge,proto3" json:"edge,omitempty"`
	// Fields only relevant if type == anchor_defines.
	Vname *VName `protobuf:"bytes,3,opt,name=vname,proto3" json:"vname,omitempty"` // The semantic node in the source language
	// which generated the text range.
	Begin    uint32               `protobuf:"varint,4,opt,name=begin,proto3" json:"begin,omitempty"` // Beginning of the range to match in the generated text.
	End      uint32               `protobuf:"varint,5,opt,name=end,proto3" json:"end,omitempty"`     // End of the range to match in the generated text.
	Semantic MappingRule_Semantic `protobuf:"varint,11,opt,name=semantic,proto3,enum=tensorflow.MappingRule_Semantic" json:"semantic,omitempty"`
	// Fields only relevant if type == anchor_anchor.
	SourceVname *VName `protobuf:"bytes,6,opt,name=source_vname,json=sourceVname,proto3" json:"source_vname,omitempty"` // Anchor node in the generating source file.
	// Note: the signature in this vname, if present,
	// will typically be replaced by the target indexer
	// using its own anchor-construction rules based on
	// source_begin and source_end.
	SourceBegin uint32 `protobuf:"varint,7,opt,name=source_begin,json=sourceBegin,proto3" json:"source_begin,omitempty"` // loc/start of the anchor node in the source file.
	SourceEnd   uint32 `protobuf:"varint,8,opt,name=source_end,json=sourceEnd,proto3" json:"source_end,omitempty"`       // loc/end of the anchor node in the source file.
	TargetBegin uint32 `protobuf:"varint,9,opt,name=target_begin,json=targetBegin,proto3" json:"target_begin,omitempty"` // Start of the range in the generated text.
	TargetEnd   uint32 `protobuf:"varint,10,opt,name=target_end,json=targetEnd,proto3" json:"target_end,omitempty"`      // End of the range in the generated text.
	// contains filtered or unexported fields
}

Metadata for a single mapping between a generated source range and a node in the source language or file.

func (*MappingRule) Descriptor deprecated added in v2.12.0

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

Deprecated: Use MappingRule.ProtoReflect.Descriptor instead.

func (*MappingRule) GetBegin added in v2.12.0

func (x *MappingRule) GetBegin() uint32

func (*MappingRule) GetEdge added in v2.12.0

func (x *MappingRule) GetEdge() string

func (*MappingRule) GetEnd added in v2.12.0

func (x *MappingRule) GetEnd() uint32

func (*MappingRule) GetSemantic added in v2.12.0

func (x *MappingRule) GetSemantic() MappingRule_Semantic

func (*MappingRule) GetSourceBegin added in v2.12.0

func (x *MappingRule) GetSourceBegin() uint32

func (*MappingRule) GetSourceEnd added in v2.12.0

func (x *MappingRule) GetSourceEnd() uint32

func (*MappingRule) GetSourceVname added in v2.12.0

func (x *MappingRule) GetSourceVname() *VName

func (*MappingRule) GetTargetBegin added in v2.12.0

func (x *MappingRule) GetTargetBegin() uint32

func (*MappingRule) GetTargetEnd added in v2.12.0

func (x *MappingRule) GetTargetEnd() uint32

func (*MappingRule) GetType added in v2.12.0

func (x *MappingRule) GetType() MappingRule_Type

func (*MappingRule) GetVname added in v2.12.0

func (x *MappingRule) GetVname() *VName

func (*MappingRule) ProtoMessage added in v2.12.0

func (*MappingRule) ProtoMessage()

func (*MappingRule) ProtoReflect added in v2.12.0

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

func (*MappingRule) Reset added in v2.12.0

func (x *MappingRule) Reset()

func (*MappingRule) String added in v2.12.0

func (x *MappingRule) String() string

type MappingRule_Semantic added in v2.12.0

type MappingRule_Semantic int32
const (
	MappingRule_SEMA_NONE       MappingRule_Semantic = 0
	MappingRule_SEMA_WRITE      MappingRule_Semantic = 1
	MappingRule_SEMA_READ_WRITE MappingRule_Semantic = 2
)

func (MappingRule_Semantic) Descriptor added in v2.12.0

func (MappingRule_Semantic) Enum added in v2.12.0

func (MappingRule_Semantic) EnumDescriptor deprecated added in v2.12.0

func (MappingRule_Semantic) EnumDescriptor() ([]byte, []int)

Deprecated: Use MappingRule_Semantic.Descriptor instead.

func (MappingRule_Semantic) Number added in v2.12.0

func (MappingRule_Semantic) String added in v2.12.0

func (x MappingRule_Semantic) String() string

func (MappingRule_Semantic) Type added in v2.12.0

type MappingRule_Type added in v2.12.0

type MappingRule_Type int32
const (
	MappingRule_NONE           MappingRule_Type = 0
	MappingRule_NOP            MappingRule_Type = 1 // Dummy rule that contains no relevant information.
	MappingRule_ANCHOR_DEFINES MappingRule_Type = 2 // Rule describing a generates edge between target
	// range and source definition.
	MappingRule_ANCHOR_ANCHOR MappingRule_Type = 3 // Rule describing an imputes edge between target range
)

func (MappingRule_Type) Descriptor added in v2.12.0

func (MappingRule_Type) Enum added in v2.12.0

func (MappingRule_Type) EnumDescriptor deprecated added in v2.12.0

func (MappingRule_Type) EnumDescriptor() ([]byte, []int)

Deprecated: Use MappingRule_Type.Descriptor instead.

func (MappingRule_Type) Number added in v2.12.0

func (MappingRule_Type) String added in v2.12.0

func (x MappingRule_Type) String() string

func (MappingRule_Type) Type added in v2.12.0

type OpRegOffset added in v2.12.0

type OpRegOffset struct {

	// Name of the op.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Filepath of where the op is registered.
	Filepath string `protobuf:"bytes,2,opt,name=filepath,proto3" json:"filepath,omitempty"`
	// The start offset of the op registration in the file.
	Start uint32 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	// The end offset of the op registration in the file.
	End uint32 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	// contains filtered or unexported fields
}

OpRegOffset describes the location of an op registration (i.e. where REGISTER_OP is called).

func (*OpRegOffset) Descriptor deprecated added in v2.12.0

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

Deprecated: Use OpRegOffset.ProtoReflect.Descriptor instead.

func (*OpRegOffset) GetEnd added in v2.12.0

func (x *OpRegOffset) GetEnd() uint32

func (*OpRegOffset) GetFilepath added in v2.12.0

func (x *OpRegOffset) GetFilepath() string

func (*OpRegOffset) GetName added in v2.12.0

func (x *OpRegOffset) GetName() string

func (*OpRegOffset) GetStart added in v2.12.0

func (x *OpRegOffset) GetStart() uint32

func (*OpRegOffset) ProtoMessage added in v2.12.0

func (*OpRegOffset) ProtoMessage()

func (*OpRegOffset) ProtoReflect added in v2.12.0

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

func (*OpRegOffset) Reset added in v2.12.0

func (x *OpRegOffset) Reset()

func (*OpRegOffset) String added in v2.12.0

func (x *OpRegOffset) String() string

type OpRegOffsets added in v2.12.0

type OpRegOffsets struct {
	Offsets []*OpRegOffset `protobuf:"bytes,1,rep,name=offsets,proto3" json:"offsets,omitempty"`
	// contains filtered or unexported fields
}

OpRegOffsets is a collection of OpRegOffset.

func (*OpRegOffsets) Descriptor deprecated added in v2.12.0

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

Deprecated: Use OpRegOffsets.ProtoReflect.Descriptor instead.

func (*OpRegOffsets) GetOffsets added in v2.12.0

func (x *OpRegOffsets) GetOffsets() []*OpRegOffset

func (*OpRegOffsets) ProtoMessage added in v2.12.0

func (*OpRegOffsets) ProtoMessage()

func (*OpRegOffsets) ProtoReflect added in v2.12.0

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

func (*OpRegOffsets) Reset added in v2.12.0

func (x *OpRegOffsets) Reset()

func (*OpRegOffsets) String added in v2.12.0

func (x *OpRegOffsets) String() string

type VName added in v2.12.0

type VName struct {

	// A language-specific signature assigned by the analyzer.
	// e.g., "com.google.common.collect.Lists.newLinkedList<#1>()"
	Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
	// The corpus this name belongs to.
	// e.g., "kythe", "chromium", "github.com/creachadair/imath", "aosp"
	// The corpus label "kythe" is reserved for internal use.
	Corpus string `protobuf:"bytes,2,opt,name=corpus,proto3" json:"corpus,omitempty"`
	// A corpus-specific root label, designating a subordinate collection within
	// the corpus.  If a corpus stores files in unrelated directory structures,
	// for example, the root can be used to distinguish them.  Or, if a corpus
	// incorporates subprojects, the root can be a project ID that it governs.
	// This may also be used to distinguish virtual subgroups of a corpus such as
	// generated files.
	Root string `protobuf:"bytes,3,opt,name=root,proto3" json:"root,omitempty"`
	// A path-structured label describing the location of this object relative to
	// the corpus and the root.  For code, this will generally be the relative
	// path to the file containing the code, e.g., "storage/service.go" in kythe.
	// The individual elements of the path are separated by "/".
	// The path must not start with "/".
	// The path must be normalized to a canonical form (with no path
	// elements "", ".", or "..").
	//
	// However, this need not be a true file path; virtual objects like figments
	// can assign an ad-hoc abstract ID, or omit it entirely.
	//
	// Examples:
	//
	//	"devools/kythe/platform/go/datastore.go" (a file)
	//	"type/cpp/void.cc" (a type figment)
	Path string `protobuf:"bytes,4,opt,name=path,proto3" json:"path,omitempty"`
	// The language this name belongs to.
	// e.g., "c++", "python", "elisp", "haskell", "java"
	//
	// The schema will define specific labels for each supported language, so we
	// don't wind up with a confusion of names like "cxx", "cpp", "C++", etc.
	// Prototype: Official language name converted to lowercase.  If a version
	// number is necessary, include it, e.g., "python3".
	Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"`
	// contains filtered or unexported fields
}

func (*VName) Descriptor deprecated added in v2.12.0

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

Deprecated: Use VName.ProtoReflect.Descriptor instead.

func (*VName) GetCorpus added in v2.12.0

func (x *VName) GetCorpus() string

func (*VName) GetLanguage added in v2.12.0

func (x *VName) GetLanguage() string

func (*VName) GetPath added in v2.12.0

func (x *VName) GetPath() string

func (*VName) GetRoot added in v2.12.0

func (x *VName) GetRoot() string

func (*VName) GetSignature added in v2.12.0

func (x *VName) GetSignature() string

func (*VName) ProtoMessage added in v2.12.0

func (*VName) ProtoMessage()

func (*VName) ProtoReflect added in v2.12.0

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

func (*VName) Reset added in v2.12.0

func (x *VName) Reset()

func (*VName) String added in v2.12.0

func (x *VName) String() string

Jump to

Keyboard shortcuts

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