lingvo.core package
Subpackages
Submodules
- lingvo.core.activations module
- lingvo.core.adagraft module
- lingvo.core.attention module
- lingvo.core.attention_util module
- lingvo.core.base_decoder module
- lingvo.core.base_input_generator module
- lingvo.core.base_layer module
- lingvo.core.base_model module
- lingvo.core.base_model_params module
- lingvo.core.batch_major_attention module
- lingvo.core.batch_utils module
- lingvo.core.beam_search_helper module
- lingvo.core.bfloat16_variables module
- lingvo.core.bn_layers module
- lingvo.core.build_data module
- lingvo.core.builder module
- lingvo.core.builder_layers module
- lingvo.core.checkpointer module
- lingvo.core.cluster module
InfeedContext
InfeedContextScope()
GetInfeedContext()
MakeDeviceString()
_Cluster
_Cluster._JobSpec()
_Cluster.Params()
_Cluster.InitDevices()
_Cluster.InitDevicesEager()
_Cluster.ListDevices()
_Cluster.Top()
_Cluster.ExportMetrics()
_Cluster._CheckInvariants()
_Cluster.params
_Cluster.mode
_Cluster.job
_Cluster.logdir
_Cluster.task
_Cluster.is_executor_tpu
_Cluster.job_spec
_Cluster.asynchronous
_Cluster.synchronous
_Cluster.num_replicas
_Cluster.tpus_per_replica
_Cluster.num_tpu_hosts
_Cluster.num_devices_per_replica
_Cluster.total_worker_devices
_Cluster.num_devices_per_split
_Cluster.num_splits_per_replica
_Cluster.num_splits_per_client
_Cluster.available_devices
_Cluster.input_device
_Cluster.all_worker_names
_Cluster.input_targets
_Cluster.WorkerDeviceInModelSplit()
_Cluster.GetPlacer()
_Cluster.tf_data_service_address
_Cluster.add_summary
_Cluster.do_eval
_Cluster.in_unit_test
_Cluster.require_sequential_input_order
_Cluster.worker_cluster_def
_Cluster.reporting_job
VarPlacer
_LeastLoadedPlacer
ParseDeviceString()
- lingvo.core.cluster_factory module
- lingvo.core.computation_cost module
- lingvo.core.conformer_layer module
- lingvo.core.constants module
- lingvo.core.conv_layers_builder module
- lingvo.core.conv_layers_with_time_padding module
- lingvo.core.datasource module
- lingvo.core.datasource_tfds module
- lingvo.core.decoder_lib module
- lingvo.core.differentiable_assignment module
- lingvo.core.distillation_task module
- lingvo.core.distributed_shampoo module
- lingvo.core.early_stop module
- lingvo.core.egdd module
- lingvo.core.entmax module
- lingvo.core.favor_attention module
- lingvo.core.flat_beam_search_helper module
- lingvo.core.generic_input module
- lingvo.core.gpipe module
- lingvo.core.graddrop module
- lingvo.core.gradient_combiner module
- lingvo.core.gshard_builder module
- lingvo.core.gshard_decode module
- lingvo.core.gshard_layers module
- lingvo.core.gshard_utils module
Split()
Replicate()
GetMeshSplitSharding()
MeshSplit()
MeshSplitDimPrefixContext()
GetMeshSplitDimPrefixContext()
ManualMeshDimContext()
ZigzagOrderOnDeviceMesh()
GetNonPod2dMesh()
ReshapeDim()
TensorShardingSpec
TensorShardingSpec.FromFullShape()
TensorShardingSpec.ApplyToTensor()
TensorShardingSpec.ApplyToVariable()
TensorShardingSpec.ShardShape()
TensorShardingSpec.ManualToAutoPartitioning()
TensorShardingSpec.AutoToManualPartitioning()
TensorShardingSpec.ToXlaOpSharding()
TensorShardingSpec.FromXlaOpSharding()
TensorShardingSpec.AddLeadingDims()
TensorShardingSpec.RemoveLeadingDims()
TensorShardingSpec.RemoveDim()
TensorShardingSpec.ReplicatedSpec()
TensorShardingSpec.split_dims_mapping
TensorShardingSpec.device_mesh
TensorShardingSpec.is_replicated
TensorShardingSpec.mesh_dim_to_tensor_dim_mapping
TensorShardingSpec.uneven_padding
GetVarSharding()
LoadSpm()
- lingvo.core.hyperparams module
_QuoteString()
_UnquoteString()
_EndsWithTerminalQuote()
_IsNamedTuple()
_SortedDict
_Param
CopyFieldsTo()
Params
Params._ToString()
Params._SimilarKeys()
Params._KeyErrorString()
Params.Copy()
Params._CopyTo()
Params.MergeCommonKeysFrom()
Params.Define()
Params.Freeze()
Params.IsImmutable()
Params._GetNested()
Params.Set()
Params.Get()
Params.Delete()
Params.IterParams()
Params.GetKeys()
Params.ToProto()
Params.FromProto()
Params.Visit()
Params.ToText()
Params.FromText()
Params.ToTextWithTypes()
Params.FromTextWithTypes()
Params.TextDiff()
InstantiableParams
- lingvo.core.hyperparams_pb2 module
_b()
Hyperparam
HyperparamRepeated
HyperparamValue
HyperparamValue.DESCRIPTOR
HyperparamValue.bool_val
HyperparamValue.dict_val
HyperparamValue.dtype_val
HyperparamValue.enum_val
HyperparamValue.float_val
HyperparamValue.int_val
HyperparamValue.list_val
HyperparamValue.named_tuple_val
HyperparamValue.param_val
HyperparamValue.proto_val
HyperparamValue.string_repr_val
HyperparamValue.string_val
HyperparamValue.symbolic_val
HyperparamValue.tuple_val
HyperparamValue.type_val
ProtoVal
EnumVal
NamedTupleVal
- lingvo.core.inference_graph_exporter module
- lingvo.core.inference_graph_pb2 module
_b()
InferenceGraph
InferenceGraph.CollectionDefEntry
InferenceGraph.DESCRIPTOR
InferenceGraph.FeedFetchMeta
InferenceGraph.FeedFetchMeta.DESCRIPTOR
InferenceGraph.FeedFetchMeta.data_type
InferenceGraph.FeedFetchMeta.dispatch_stride_axis
InferenceGraph.FeedFetchMeta.extensions
InferenceGraph.FeedFetchMeta.layout
InferenceGraph.FeedFetchMeta.quantized_max_const
InferenceGraph.FeedFetchMeta.quantized_max_tensor
InferenceGraph.FeedFetchMeta.quantized_min_const
InferenceGraph.FeedFetchMeta.quantized_min_tensor
InferenceGraph.FeedFetchMeta.quantized_num_bits
InferenceGraph.FeedFetchMeta.shape
InferenceGraph.Subgraph
InferenceGraph.Subgraph.DESCRIPTOR
InferenceGraph.Subgraph.FeedsEntry
InferenceGraph.Subgraph.FeedsMetaEntry
InferenceGraph.Subgraph.FetchesEntry
InferenceGraph.Subgraph.FetchesMetaEntry
InferenceGraph.Subgraph.feeds
InferenceGraph.Subgraph.feeds_meta
InferenceGraph.Subgraph.fetches
InferenceGraph.Subgraph.fetches_meta
InferenceGraph.Subgraph.meta
InferenceGraph.SubgraphMeta
InferenceGraph.SubgraphsEntry
InferenceGraph.asset_file_def
InferenceGraph.collection_def
InferenceGraph.graph_def
InferenceGraph.hyperparameters
InferenceGraph.saver_def
InferenceGraph.subgraphs
- lingvo.core.input_generator_helper module
- lingvo.core.input_policy module
- lingvo.core.insertion module
- lingvo.core.inspect_utils module
- lingvo.core.layers module
- lingvo.core.layers_with_attention module
- lingvo.core.layers_with_gpipe module
- lingvo.core.learner module
- lingvo.core.lstm_frnn_layer module
- lingvo.core.matrix_functions module
- lingvo.core.metrics module
- lingvo.core.ml_perf_bleu_metric module
- lingvo.core.ml_perf_log module
- lingvo.core.ml_perf_tokenizer module
- lingvo.core.model_helper module
- lingvo.core.multitask_model module
- lingvo.core.nested_map module
_FromNestedDict()
NestedMap
NestedMap._HAS_DYNAMIC_ATTRIBUTES
NestedMap._RESERVED_KEYS
NestedMap._DELETE
NestedMap.copy()
NestedMap.DeepCopy()
NestedMap.FromNestedDict()
NestedMap.ToNestedDict()
NestedMap.CheckKey()
NestedMap.SquareBracketIndex()
NestedMap.GetItem()
NestedMap.Get()
NestedMap.Set()
NestedMap._RecursiveMap()
NestedMap.Flatten()
NestedMap.FlattenItems()
NestedMap.Pack()
NestedMap.Transform()
NestedMap.TransformWithKey()
NestedMap.IsCompatible()
NestedMap.Filter()
NestedMap.FilterKeyVal()
NestedMap._ToStrings()
NestedMap.DebugString()
NestedMap.VLog()
- lingvo.core.optimizer module
- lingvo.core.plot module
- lingvo.core.predictor module
- lingvo.core.predictor_runner_base module
- lingvo.core.program module
- lingvo.core.program_utils module
- lingvo.core.pruning_utils module
- lingvo.core.py_utils module
- lingvo.core.py_utils_flags module
- lingvo.core.quant_test_lib module
- lingvo.core.quant_utils module
- lingvo.core.recurrent module
- lingvo.core.repeat_layer module
- lingvo.core.retry module
- lingvo.core.reversible_layers module
- lingvo.core.rnn_cell module
- lingvo.core.rnn_layers module
- lingvo.core.routing_config_helper module
- lingvo.core.saver module
- lingvo.core.scatter_update module
- lingvo.core.schedule module
- lingvo.core.scorers module
- lingvo.core.self_attention_layer module
- lingvo.core.sendrecv module
- lingvo.core.spectrum_augmenter module
- lingvo.core.spectrum_augmenter_on_device module
- lingvo.core.step module
- lingvo.core.stream_step_test_base module
- lingvo.core.summary_utils module
- lingvo.core.symbolic module
- lingvo.core.target_sequence_sampler module
- lingvo.core.task_scheduler module
- lingvo.core.test_helper module
- lingvo.core.test_trainer_utils module
- lingvo.core.test_utils module
- lingvo.core.thread_local_utils module
- lingvo.core.tokenizers module
- lingvo.core.tpu_embedding_layers module
- lingvo.core.tpu_summary module
- lingvo.core.trainer_test_utils module
- lingvo.core.tshape module
- lingvo.core.var_tmp_wrappers module
VarWrapperTrackAssign
StackedVarWrapperWithManualSharding
StackedVarWrapperWithManualSharding.raw_var
StackedVarWrapperWithManualSharding._to_manual()
StackedVarWrapperWithManualSharding._to_auto()
StackedVarWrapperWithManualSharding.value()
StackedVarWrapperWithManualSharding.read_value()
StackedVarWrapperWithManualSharding.assign()
StackedVarWrapperWithManualSharding.assign_add()
StackedVarWrapperWithManualSharding.assign_sub()
- lingvo.core.wpm_encoder module