Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tensorflow/lingvo
/ functions
Functions
9,552 in github.com/tensorflow/lingvo
⨍
Functions
9,552
◇
Types & classes
1,444
↳
Endpoints
48
↓ 8 callers
Method
__init__
(self, params)
lingvo/core/task_scheduler.py:39
↓ 8 callers
Method
__init__
(self, params, shared_model=None, trial=base_trial.NoOpTrial(),
lingvo/core/program.py:113
↓ 8 callers
Method
__init__
(self, params)
lingvo/core/attention.py:3676
↓ 8 callers
Method
_buildGraphAndSaver
(logdir, keep_latest_n=5, keep_every_n_hours=None,
lingvo/core/saver_test.py:58
↓ 8 callers
Method
_testTransformerAttentionLayerInputsMultiAuxSource
( self, aux_source_list, depth=3, context_depth=3, dtype=tf.float32)
lingvo/core/layers_with_attention_test.py:820
↓ 8 callers
Method
assign_sub
(self, delta, use_locking=False, name=None, read_value=True)
lingvo/core/var_tmp_wrappers.py:73
↓ 7 callers
Method
CheckKey
Asserts that key is valid NestedMap key.
lingvo/core/nested_map.py:200
↓ 7 callers
Method
Embedding
(self, name, vocab_dim)
lingvo/core/gshard_builder.py:457
↓ 7 callers
Method
Feedforward
(self, name, is_causal=False, ff_hidden_dim=None, qdomain=None, use_paddings=None)
lingvo/core/batch_major_attention.py:8931
↓ 7 callers
Method
FromProto
Reads from a Hyperparams proto.
lingvo/core/hyperparams.py:611
↓ 7 callers
Function
GeneratePoints
Generates batch_size sets of points, the k-th example in the batch has n-k centers (i-th center is on (i, i)) and m points near each center.
lingvo/tasks/car/ops/ps_utils_test.cc:35
↓ 7 callers
Function
GetVariableNumLeadingDimsForCombinedLayersContext
Return the number of leading combined-layers dims for CreateVariable().
lingvo/core/py_utils.py:1656
↓ 7 callers
Method
InitState
Returns new state with leading shape=[batch, max_steps].
lingvo/core/gshard_layers.py:1241
↓ 7 callers
Function
Log
lingvo/tasks/car/ops/ps_utils_test.cc:64
↓ 7 callers
Method
MaximumRotation
Maximum rotation angle in world coordinates.
lingvo/tasks/car/evaluation_metadata.py:82
↓ 7 callers
Method
Params
Parameters for this task scheduler.
lingvo/core/task_scheduler.py:33
↓ 7 callers
Method
Params
(cls)
lingvo/core/quant_utils.py:1086
↓ 7 callers
Method
QuantizeNaturalRange
Quantizes a tensor with a known, natural range. Args: t: Tensor to quantize. min_value: Min value of the range. max_value: Max
lingvo/core/quant_utils.py:1016
↓ 7 callers
Function
ResetStepSeed
Resets step_seed to specified value.
lingvo/core/py_utils.py:3898
↓ 7 callers
Method
RestoreFromPath
Load the checkpoint from specified path.
lingvo/core/checkpointer.py:268
↓ 7 callers
Method
SetLogdirInMetricHistories
Set the logdir member in all MetricHistory.params objects in params. Args: params: global model params. logdir: root dir for current
lingvo/core/early_stop.py:28
↓ 7 callers
Method
SetValue
Sets the current value of the accumulator Tensor.
lingvo/core/base_layer.py:87
↓ 7 callers
Method
StreamStep
Streams t steps. Args: theta: A NestedMap of layer params. inputs: [b, t, d]. paddings: A 0/1 valued tensor of shape [b, t].
lingvo/core/conformer_layer.py:390
↓ 7 callers
Method
Summary
(self)
lingvo/core/program.py:1343
↓ 7 callers
Method
Task
(self)
lingvo/tasks/car/params/waymo_deepfusion.py:892
↓ 7 callers
Method
UniformSampler
lingvo/tasks/car/ops/ps_utils.cc:50
↓ 7 callers
Method
Update
(self, new_value)
lingvo/core/base_layer_test.py:30
↓ 7 callers
Method
XentLoss
Computes cross entropy.
lingvo/core/layers.py:3604
↓ 7 callers
Function
_AddDefunNodes
If the given func_name is a Defun, add its sub-nodes into nodes.
lingvo/core/py_utils.py:5150
↓ 7 callers
Method
_ArgIdx
(self, name, index)
lingvo/tasks/car/builder_lib.py:191
↓ 7 callers
Method
_Bias
Bias layer. The bias is added to the last dimension of the input.
lingvo/core/builder.py:321
↓ 7 callers
Method
_CommonInputParams
Input generator params for Librispeech.
lingvo/tasks/asr/params/librispeech.py:32
↓ 7 callers
Method
_ComputeQKVCombine
(self, name)
lingvo/core/gshard_builder.py:2064
↓ 7 callers
Method
_ConstructTransformerBatchMajorDecoder
(self, dtype=tf.float32,
lingvo/tasks/mt/decoder_test.py:1662
↓ 7 callers
Function
_CreateProgramParams
Create different program param instance per inputs.
lingvo/core/program.py:2484
↓ 7 callers
Method
_ExportMetrics
Exports metrics externally.
lingvo/base_runner.py:174
↓ 7 callers
Method
_Fn
(theta, *, common_input, layerwise_input, iterative)
lingvo/core/batch_major_attention.py:7021
↓ 7 callers
Method
_Fn
y = fn(x). Applies a fn: tuple(Tensor) -> a single Tensor or tuple(Tensor) to the input tuple. Typically, fn is a very simple python functio
lingvo/core/builder.py:178
↓ 7 callers
Method
_GIN
Graph Isomorphism Network (GIN) [1]. This implements the GIN network. The input goes through multiple GINIntermediateLayers which performs th
lingvo/tasks/car/builder_lib.py:864
↓ 7 callers
Method
_GetGlobalStep
(self, sess=None)
lingvo/core/program.py:436
↓ 7 callers
Method
_GetGrad
(self, l, inputs, paddings)
lingvo/core/conformer_layer_test.py:144
↓ 7 callers
Method
_GetSimpleTestConfig
(self)
lingvo/trainer_test.py:110
↓ 7 callers
Function
_Index
Returns a `.NestedMap` with x[index, :] for each tensor x in nmap. Args: nmap: A `.NestedMap` of tensors. index: A tf scalar integer. Perfo
lingvo/core/recurrent.py:105
↓ 7 callers
Method
_JobSpec
Construct a job spec param with the given number of replicas.
lingvo/core/cluster.py:73
↓ 7 callers
Function
_NewTensorArray
Create empty TensorArray which can store max_seq_length elements.
lingvo/tasks/asr/decoder.py:43
↓ 7 callers
Method
_Override
(self, name, key=None)
lingvo/core/gshard_builder.py:2229
↓ 7 callers
Function
_RemovePrivateVar
Remove a variable by name from `layer`. This is usually used to avoid copying the variable to TPU, for example, by the tf.cast when accessing lay
lingvo/core/tpu_embedding_layers_v1.py:29
↓ 7 callers
Method
_SameHyp
(self, expected_hyp_str, real_serialized_hyp)
lingvo/core/ops/beam_search_step_op_test.py:950
↓ 7 callers
Function
_ToTuple
(x)
lingvo/core/builder_layers.py:85
↓ 7 callers
Function
_Update
Updates t-th row in accumulators. Args: nmap_acc: A `.NestedMap` of tensors. The accumulators. nmap_x: A `.NestedMap` of tensors. The updat
lingvo/core/recurrent.py:123
↓ 7 callers
Method
__init__
(self, params)
lingvo/core/layers_with_gpipe.py:174
↓ 7 callers
Method
_testInferenceGraph
(self)
lingvo/core/predictor_test.py:46
↓ 7 callers
Method
_testLNLSTMCell
(self, params, num_input_nodes=2, num_output
lingvo/core/rnn_cell_test.py:991
↓ 7 callers
Method
_testParams
(self)
lingvo/tasks/mt/model_test.py:401
↓ 7 callers
Method
_testParams
(self)
lingvo/tasks/mt/model_test.py:589
↓ 7 callers
Method
_verify_timestep_counts
(self, num_splits, auto_partition=False,
lingvo/core/gpipe_test.py:145
↓ 7 callers
Method
best_step
(self)
lingvo/core/early_stop.py:176
↓ 7 callers
Method
current
Returns current context or None.
lingvo/core/tpu_summary.py:81
↓ 7 callers
Method
restore
(self, restored_tensors, restored_shapes)
lingvo/core/bfloat16_variables.py:62
↓ 7 callers
Method
value
(self)
lingvo/core/metrics.py:201
↓ 6 callers
Method
Append
lingvo/core/ops/record_yielder.cc:177
↓ 6 callers
Method
ApplyClipping
Applies clipping to x. Args: theta: Layer theta. x: Input tensor to clip. **kwargs: Additional implementation specific kwargs.
lingvo/core/quant_utils.py:1204
↓ 6 callers
Method
ConstructDecodeGraph
(self, task_name=None)
lingvo/core/base_model.py:1269
↓ 6 callers
Method
CopyBaseParams
Copies BaseLayer params from `from_params` to `to_params`.
lingvo/core/base_layer.py:288
↓ 6 callers
Method
CreateDecoderMetrics
(self)
lingvo/tasks/asr/model.py:243
↓ 6 callers
Method
CreateDenseCoordinates
Create a matrix of coordinate locations corresponding to a dense grid. Example: To create (x, y) coordinates corresponding over a 10x10 grid with
lingvo/tasks/car/detection_3d_lib.py:144
↓ 6 callers
Method
DenseReluDenseGated
(self, name, activation_fn, decoder=False)
lingvo/core/gshard_builder.py:1019
↓ 6 callers
Method
Discretize
(self, bboxes)
lingvo/tasks/car/breakdown_metric.py:269
↓ 6 callers
Method
ExtendStep
Transformer decoder layer, extend one step in autoregressive decoding. query_vec and aux_* may have different batch sizes, e.g., during a beam
lingvo/core/batch_major_attention.py:6660
↓ 6 callers
Method
FProp
(self, theta, external_inputs, step_inputs, padding, state0)
lingvo/core/step_test.py:38
↓ 6 callers
Method
FProp
Apply the stacking to inputs along the time axis. Args: inputs: The inputs tensor. It is expected to be of shape [batch, time, feat
lingvo/core/layers.py:2117
↓ 6 callers
Method
FProp
Compute features for the pillars and convert them back to a dense grid. Args: theta: A `.NestedMap` object containing variable values of th
lingvo/tasks/car/pillars.py:81
↓ 6 callers
Function
FindBucket
lingvo/tasks/car/ops/ps_utils.cc:41
↓ 6 callers
Method
FromNestedDict
Converts every dict in nested structure 'x' to a NestedMap.
lingvo/core/nested_map.py:168
↓ 6 callers
Method
FunnelEncoderLayer
(inputs, paddings) -> (encoded, paddings). Args: name: the string name of the encoder layer params. stride: To pool every k tokens, s
lingvo/core/batch_major_attention.py:9371
↓ 6 callers
Function
GenerateTestData
lingvo/core/ops/record_batcher_test.cc:31
↓ 6 callers
Method
GetAccumulatorValues
Recursively gets values of all accumulators. Returns: `.NestedMap` of Tensors for each registered accumulator.
lingvo/core/base_layer.py:800
↓ 6 callers
Function
GetCenters
lingvo/tasks/car/ops/ps_utils_test.cc:97
↓ 6 callers
Function
GetLrValue
(lr_or_callable)
lingvo/core/optimizer.py:29
↓ 6 callers
Method
GetOptimizer
(self, lr)
lingvo/core/optimizer.py:339
↓ 6 callers
Method
GetSlice
Returns a copy of self containing only entries matching `keys`. Note: This function permits lingvo-nestedmap-style nested keys such as `m.f
lingvo/core/nested_map.py:259
↓ 6 callers
Method
GetVariableName
(self, host_id)
lingvo/core/tpu_embedding_layers_v1.py:832
↓ 6 callers
Method
IdsToStrings
Takes int32 token ids and returns approximate detokenized strings.
lingvo/tasks/lm/tokenizer.py:110
↓ 6 callers
Function
IsTpu
(device_options)
lingvo/core/inference_graph_exporter.py:103
↓ 6 callers
Function
Pack
Packs 'values' according to 'tmpl'.
lingvo/core/py_utils.py:865
↓ 6 callers
Method
Params
(cls)
lingvo/trainer_test.py:140
↓ 6 callers
Method
Params
(cls)
lingvo/core/conv_layers_with_time_padding.py:1016
↓ 6 callers
Method
Params
(cls)
lingvo/tasks/car/pillars_anchor_free.py:102
↓ 6 callers
Function
Pos
(x)
lingvo/tasks/car/geometry.py:367
↓ 6 callers
Method
PostProcessDecodeOut
Post-processes decoder out and updates contents of `decode_metrics_dict`. Args: decode_out_dict: A dictionary of Tensors fetched. Could als
lingvo/core/base_model.py:978
↓ 6 callers
Method
PostProcessDecodeOut
(self, dec_out_dict, dec_metrics_dict)
lingvo/tasks/asr/model.py:246
↓ 6 callers
Method
PrepareExternalInputs
(self, theta, external_inputs)
lingvo/core/step_test.py:32
↓ 6 callers
Method
ProcessFPropResults
Called once for each train loop. BaseModel.ProcessFPropResults is also called on each loop, so you can put your implementation wherever it is
lingvo/core/base_model.py:520
↓ 6 callers
Method
Restore
Restore from latest checkpoint if available, or initialize.
lingvo/core/checkpointer.py:354
↓ 6 callers
Method
SampleTargetSequences
Performs target sequence sampling. Args: theta: A NestedMap object containing weights' values of this layer and its children layers
lingvo/core/base_decoder.py:438
↓ 6 callers
Method
Save
Save the checkpoint. Args: sess: tf.Session. gsteps: Current global step. sync: Whether to wait for the saving operations to fi
lingvo/core/checkpointer.py:313
↓ 6 callers
Method
ScaleGradients
Scales gradients according to training params. Args: var_grads: a `.NestedMap` whose values are (var, grad) pairs. gradient_adjuster:
lingvo/core/learner.py:434
↓ 6 callers
Method
ShouldStop
Returns whether the trial should stop.
lingvo/base_trial.py:69
↓ 6 callers
Method
StreamStep
Computes the value vector given the query of the current step. This differs from ExtendStep() which requires key/value seq lengths being know
lingvo/core/batch_major_attention.py:3217
↓ 6 callers
Function
ToStaticShape
Converts 'shape' to a static shape.
lingvo/core/py_utils.py:959
← previous
next →
401–500 of 9,552, ranked by callers