MCPcopy Create free account

hub / github.com/tensorflow/lingvo / types & classes

Types & classes1,444 in github.com/tensorflow/lingvo

↓ 19 callersClassNestedMap
A simple helper to maintain a dict. It is a sub-class of dict with the following extensions/restrictions: - It supports attr access to its memb
lingvo/core/nested_map.py:81
↓ 17 callersClassThreadLocalStack
lingvo/core/thread_local_utils.py:20
↓ 10 callersClassShape
Shape represents a tensor's symbolic shape.
lingvo/core/tshape.py:21
↓ 8 callersClassAddingAccumulator
lingvo/core/base_layer_test.py:25
↓ 8 callersClassVarGrad
A class that holds a variable and a gradient. This does not inherit from namedtuple so that tf.nest operations do not recurse into it.
lingvo/core/py_utils.py:3090
↓ 7 callersClassMockTransformer
lingvo/core/tpu_summary_test.py:23
↓ 6 callersClass_SortedDict
A dict with a __repr__ that is always sorted by key.
lingvo/core/hyperparams.py:122
↓ 5 callersClassBoxes3D
A container for a list of 7-DOF 3D boxes. Each 3D box is represented by the 7-tuple [x, y, z, dx, dy, dz, phi], where x, y, z is the center of th
lingvo/tasks/car/ap_metric.py:28
↓ 5 callersClassFunction
Function builds a TensorFlow graph function from a callable. In the high level this is similar to tf.Defun and tf.function. In fact this relies o
lingvo/core/py_utils.py:5778
↓ 5 callersClassTensorShardingSpec
Represents a sharding annotation for GShard/XLA.
lingvo/core/gshard_utils.py:237
↓ 5 callersClassVertex
A vertex with (x, y) coordinate. This is an internal implementation detail of RotatedBox2D.
lingvo/tasks/car/ops/box_util.h:31
↓ 4 callersClassDummyDatasetHolder
lingvo/datasets_test.py:26
↓ 4 callersClassShard
lingvo/core/ops/record_yielder.h:256
↓ 4 callersClass_Recurrent
A helper class to construct a recurrent neural net.
lingvo/core/recurrent.py:286
↓ 3 callersClassAddingAccumulator
Accumulator for the sufficient statistics.
lingvo/core/bn_layers.py:31
↓ 3 callersClassBuilder
Builder for StarNet Model.
lingvo/tasks/car/starnet.py:46
↓ 3 callersClassBuilder
Builder for the Pillars model.
lingvo/tasks/car/pillars.py:148
↓ 3 callersClassDummyModel
lingvo/model_registry_test.py:31
↓ 3 callersClassGPipeEvolvedTransformerDecoderLayer
GPipe-compatible Evolved Transformer decoder layer.
lingvo/core/layers_with_gpipe.py:289
↓ 3 callersClassGPipeTransformerStack
Stacked self- multi-head attention and fully connected layers. With optional layer normalization applied to the final output. See 'Attention Is
lingvo/core/layers_with_gpipe.py:576
↓ 3 callersClassGraphSignature
Represents the input/output signature of a GraphLayer. A signature is of the form: input->output or, optionally just an input: input T
lingvo/core/builder_layers.py:651
↓ 3 callersClassTestDecoder
Decoder with state which produces well-defined logits. It determines the best next token according to one of the rules: - increment last token id
lingvo/core/flat_beam_search_helper_test.py:30
↓ 2 callersClassBatchFlattener
Reshapes tensors for functions/layers that expect a single batch dimension. Example: Suppose a sequence `encoder` has signature :: [batch_si
lingvo/tasks/milan/utils.py:158
↓ 2 callersClassDatasetError
Dataset error exception class.
lingvo/core/base_model_params.py:33
↓ 2 callersClassErrorStats
Class to keep track of error counts.
lingvo/tasks/asr/levenshtein_distance.py:19
↓ 2 callersClassExamplePairs
Defines query-result example pairs to be labeled. `query_examples` and `result_examples` are the input batches of the queries and results being l
lingvo/tasks/milan/labels.py:94
↓ 2 callersClassGPipeEvolvedTransformerEncoderLayer
GPipe-compatible Evolved Transformer encoder layer.
lingvo/core/layers_with_gpipe.py:224
↓ 2 callersClassGraphTensors
A collection of named tensors (or NestedMaps of tensors).
lingvo/core/builder_layers.py:597
↓ 2 callersClassHigherScore
lingvo/core/ops/beam_search_step_op_kernels.h:54
↓ 2 callersClassHighlightAlignedHtmlHandler
Handler for HighlightAlignedHtml.
lingvo/tasks/asr/tools/simple_wer_v2.py:201
↓ 2 callersClassMultiHeadedAttentionRPEOracle
Computes ground truths for MultiHeadedfAttentionRPE. Written in a non-vectorized way.
lingvo/core/batch_major_attention_test.py:2126
↓ 2 callersClassRotatedBox2D
A rotated 2D bounding box represented as (cx, cy, w, h, r). cx, cy are the box center coordinates; w, h are the box width and height; heading is the r
lingvo/tasks/car/ops/box_util.h:44
↓ 2 callersClassTestDataClass
Test dataclasses.dataclass.
lingvo/core/hyperparams_test.py:51
↓ 2 callersClassTpuSummaryContext
Non-reentrant context that holds the list of summary tensors.
lingvo/core/tpu_summary.py:75
↓ 2 callersClassTpuSummaryScalar
Plain data object. Much better than namedtuple.
lingvo/core/tpu_summary.py:59
↓ 2 callersClass_CollectionGetter
Get graph local value from a defined collection.
lingvo/core/py_utils.py:1335
↓ 2 callersClass_Param
Stores data for a single parameter.
lingvo/core/hyperparams.py:131
↓ 2 callersClass_Unique
A helper to uniqify variables in a NestedMap.
lingvo/core/py_utils.py:898
↓ 1 callersClassAUCMetric
Class to compute the AUC score for binary classification.
lingvo/core/metrics.py:461
↓ 1 callersClassAddIdentity
Helper class.
lingvo/core/py_utils.py:2726
↓ 1 callersClassAnalyzer
Helper class.
lingvo/core/summary_utils.py:442
↓ 1 callersClassAverageMetric
Class to compute a weighted (arithmetic) average value metric.
lingvo/core/metrics.py:79
↓ 1 callersClassBetterTerminatedHyp
lingvo/core/ops/beam_search_step_op_kernels.h:95
↓ 1 callersClassBfloat16VariableSaveable
Saveable that loads Variables as bfloat16.
lingvo/core/bfloat16_variables.py:45
↓ 1 callersClassBox2D
A representation of a 2D rotated bounding box. Box2D is based on conventions for 3D coordinate systems where y-x are switched.
lingvo/tasks/car/transform_util.py:22
↓ 1 callersClassCandidate
lingvo/tasks/car/ops/nms_3d_op.cc:93
↓ 1 callersClassDatasetFunctionError
lingvo/datasets.py:30
↓ 1 callersClassDatasetsVisitor
NodeVisitor for collecting datasets for a model.
lingvo/datasets.py:129
↓ 1 callersClassDefinedFunction
Encapsulates a TensorFlow graph function and its properties.
lingvo/core/py_utils.py:5875
↓ 1 callersClassDoneHypEntryCompare
lingvo/core/ops/beam_search_step_op_kernels.cc:1366
↓ 1 callersClassEncodeCaptionsFn
Generates encodings of text captions.
lingvo/tasks/milan/tools/prepare_coco.py:165
↓ 1 callersClassExecutorEma
EMA related instances which an executor prepares.
lingvo/core/base_model.py:69
↓ 1 callersClassFakeTF2ImageModule
lingvo/tasks/milan/tf_hub_layers_test.py:73
↓ 1 callersClassFrameToTFE
Converter utility from car.open_dataset.Frame to tf.Examples.
lingvo/tasks/car/waymo/tools/waymo_proto_to_tfe.py:187
↓ 1 callersClassGPipeTransformerLayer
GPipe compatible transformer layer.
lingvo/core/layers_with_gpipe.py:165
↓ 1 callersClassGShardLMDecodeBatch
Subclass for LM batch decoding.
lingvo/tasks/lm/tools/gshard_lm_decode.py:256
↓ 1 callersClassGradientAggregationOptimizer
Optimizer wrapper providing deferred gradient application. Large hardware configurations are in high-demand, and difficult to come by. This class
lingvo/core/optimizer.py:1276
↓ 1 callersClassHyp
Simple tuple for book keeping during beam pruning.
lingvo/core/ops/beam_search_step_op_kernels.h:32
↓ 1 callersClassInstantiableParams
Params which can be instantiated. When using InstantiableParams, callers must provide a class which supports initialization using a Params instan
lingvo/core/hyperparams.py:1129
↓ 1 callersClassMetadata
Describes the `tf.data.Dataset`s that a `DatasetSpec` instance produces.
lingvo/tasks/milan/dataset_spec.py:37
↓ 1 callersClassMetricHistory
Record given metric versus global_step history to a file.
lingvo/core/early_stop.py:24
↓ 1 callersClassMultiHeadedAttentionXLOracle
Oracle layer used for computing ground truths for MultiHeadedAttention. Written in a non-vectorized way.
lingvo/core/batch_major_attention_test.py:1167
↓ 1 callersClassMyClass
lingvo/core/inspect_utils_test.py:118
↓ 1 callersClassOptions
lingvo/tasks/car/ops/image_metrics.h:92
↓ 1 callersClassParams
Stores data for a set of parameters. Provides attribute-based API, e.g. "params.foo = 5". Uses internal {'name': _Param} dict for storing paramet
lingvo/core/hyperparams.py:266
↓ 1 callersClassPartialDatasetParams
lingvo/core/base_model_params_test.py:27
↓ 1 callersClassPartitionConfig
Config for tensor partitioning.
lingvo/core/distributed_shampoo.py:32
↓ 1 callersClassPartitionMetadata
Metadata for partitioning.
lingvo/core/distributed_shampoo.py:46
↓ 1 callersClassPwTpuSummaryTensor
A summary tensor with the first dim being the batch.
lingvo/core/tpu_summary.py:67
↓ 1 callersClassReadCocoFromTfdsFn
Reads splits of the 'coco_captions' dataset via `tensorflow_datasets`.
lingvo/tasks/milan/tools/prepare_coco.py:148
↓ 1 callersClassRecipeError
lingvo/tasks/milan/params/dual_encoder_recipe.py:29
↓ 1 callersClassRewriteLoopContext
Context manager. Rewrites tf.while_loop to propagate summary tensors.
lingvo/core/tpu_summary.py:99
↓ 1 callersClassRope
lingvo/core/ops/rope.h:24
↓ 1 callersClassRunnerManager
Helper class for managing runners.
lingvo/trainer.py:224
↓ 1 callersClassSaverWrapper
Wrapper interface between tf.train.Saver and the custom saver.
lingvo/core/checkpointer.py:36
↓ 1 callersClassSerializeAsStringClass
Used for testing ToProto.
lingvo/core/hyperparams_test.py:70
↓ 1 callersClassShardedAdamOptimizer
Adam optimizer that shards the slot variables.
lingvo/tasks/lm/params/synthetic_packed_input.py:358
↓ 1 callersClassSimpleWER
Compute word error rates after the alignment. Attributes: key_phrases: list of important phrases. aligned_htmls: list of diagnois htmls, ea
lingvo/tasks/asr/tools/simple_wer_v2.py:212
↓ 1 callersClassSomeObj
lingvo/core/nested_map_test.py:523
↓ 1 callersClassStatsCollector
Collect stats.
lingvo/tools/compute_stats.py:29
↓ 1 callersClassTestModelParams
lingvo/core/base_model_params_test.py:21
↓ 1 callersClassTestNamedTuple
Test namedtuple class.
lingvo/core/hyperparams_test.py:57
↓ 1 callersClassThreadLocalDict
lingvo/core/thread_local_utils.py:27
↓ 1 callersClassTimestepAccumulator
Simple accumulator for counting timesteps.
lingvo/core/rnn_layers_test.py:33
↓ 1 callersClassUnicodeRegex
Ad-hoc hack to recognize all punctuation and symbols.
lingvo/core/ml_perf_bleu_metric.py:166
↓ 1 callersClassUnsegmenter
Un-segments (merges) segmented strings. Used to retain back the original surface form of strings that are encoded using byte-pair-encoding (BPE),
lingvo/core/scorers.py:35
↓ 1 callersClassWaymoBreakdownMetric
Calculate average precision as function of difficulty.
lingvo/tasks/car/waymo/waymo_ap_metric.py:360
↓ 1 callersClassWrapper
Wrapper object.
lingvo/core/py_utils.py:929
↓ 1 callersClassWrapper
lingvo/core/ops/thread_local_runner.h:47
↓ 1 callersClassXLAShardingAdafactorOptimizer
Adafactor optimizer for XLA sharding.
lingvo/core/optimizer.py:905
↓ 1 callersClass_CacheDataset
A `Dataset` that caches elements of its input.
lingvo/compat.py:132
↓ 1 callersClass_CountedMinMaxAccumulator
Accumulator for a counted min/max. Represented as a tensor of shape [count, min, max]. Every update increases the count and expands the min/max (
lingvo/core/quant_utils.py:1582
↓ 1 callersClass_EagerSessionAdaptor
An adapter providing `tf.Session`-like interface in eager mode. This adapter is designed to be used with the @DefineAndTrace decorator above, and
lingvo/core/test_utils.py:201
↓ 1 callersClass_IncrementAccumulator
lingvo/core/recurrent_test.py:76
↓ 1 callersClass_Input
Input layers.
lingvo/core/recurrent.py:1164
↓ 1 callersClass_LeastLoadedPlacer
Placer which places a variable on the least loaded var device. We use total byte sizes of variables placed on a device to indicate the device's l
lingvo/core/cluster.py:624
↓ 1 callersClass_Link
A link is a pair of channels.
lingvo/core/recurrent.py:1142
↓ 1 callersClass_LocalSymbolToValueStack
A thread-local stack of symbol-to-value dicts.
lingvo/core/symbolic.py:38
↓ 1 callersClass_Middle
Middle layers.
lingvo/core/recurrent.py:1242
↓ 1 callersClass_Output
Output layers.
lingvo/core/recurrent.py:1328
next →1–100 of 1,444, ranked by callers