MCPcopy Create free account

hub / github.com/tensorflow/lingvo / functions

Functions9,552 in github.com/tensorflow/lingvo

↓ 6 callersMethodTruncatedGaussian
scale * tf.random.truncated_normal(0, 1.0).
lingvo/core/py_utils.py:1145
↓ 6 callersFunctionUpdate
Performs scatter update: x[i] = v. A drop-in replacement for inplace_ops.alias_inplace_update ( aka tf.InplaceUpdate). Args: x: the source
lingvo/core/scatter_update.py:41
↓ 6 callersMethodUpdate
Updates the metrics. Args: key: The key this (target, pred) pair belongs to. target: An array to specify the groundtruth float target
lingvo/core/metrics.py:726
↓ 6 callersMethodXentLossFromLogits
Computes SCONES loss, argmax etc. from logits.
lingvo/core/layers.py:4231
↓ 6 callersMethodZeroState
(self, theta, prepared_inputs, batch_size)
lingvo/core/step_test.py:35
↓ 6 callersFunction_AttenCtxIsSet
(atten_context)
lingvo/core/conformer_layer.py:445
↓ 6 callersMethod_AttentionInputs
(self, input_dim=4, dtype=tf.float32)
lingvo/core/batch_major_attention_test.py:888
↓ 6 callersMethod_AttentionSetupDeterministicDropout
(cls, tr_atten_tpl)
lingvo/core/layers_with_gpipe.py:260
↓ 6 callersMethod_Bias
(self, name, dims, params_init=None)
lingvo/tasks/car/builder_lib.py:100
↓ 6 callersFunction_CheckLengthOrExpand
Check the length of param_per_dataset, if it's not list, expand to list.
lingvo/core/program.py:2508
↓ 6 callersMethod_CheckName
Asserts name's validity.
lingvo/core/base_layer.py:740
↓ 6 callersMethod_ConcatWithBranch
Concat x with subs(x).
lingvo/tasks/car/pointnet.py:31
↓ 6 callersMethod_CreateDecoderDev
(self, cfg)
lingvo/trainer_test.py:84
↓ 6 callersMethod_CreateLayerVariables
(self)
lingvo/core/batch_major_attention.py:7981
↓ 6 callersMethod_CreateLayerVariables
(self)
lingvo/core/attention.py:3730
↓ 6 callersMethod_CreateSummaryWriter
Creates and returns a tf summary writer.
lingvo/base_runner.py:620
↓ 6 callersMethod_DecComputeBiasGraphEdge
Returns an edge of GraphLayer to compute attenion bias for Decoders.
lingvo/core/gshard_builder.py:1243
↓ 6 callersMethod_DecoderDevice
Returns the device to run the decoder computation.
lingvo/tasks/mt/model.py:40
↓ 6 callersMethod_DecoderFPropHelper
(self, decoder_cls, dtype, fprop
lingvo/tasks/mt/decoder_test.py:106
↓ 6 callersMethod_FeaturesMLP
(self, name, dims, use_bn=True, activation_fn=None)
lingvo/tasks/car/builder_lib.py:791
↓ 6 callersMethod_GenerateRandomBBoxes
(self, num_images, num_bboxes)
lingvo/tasks/car/ops/average_precision_3d_op_test.py:25
↓ 6 callersFunction_GetHistogramProto
Get the histogram proto for checkpoint write duration metric. Args: is_async: A bool indicating whether to fetch for the async write duration
lingvo/core/saver_test.py:34
↓ 6 callersMethod_GetQStateVar
(self, act_name, suffix)
lingvo/core/quant_utils.py:1784
↓ 6 callersMethod_JaxReplicaLN
A replica of Lingvo's JAX LN.
lingvo/core/gshard_builder.py:1889
↓ 6 callersMethod_LN
Overriding with bias-less layer norm.
lingvo/core/gshard_builder.py:1822
↓ 6 callersMethod_MultiSourceFRNNWithAttentionInputs
(self, single_source=False,
lingvo/core/rnn_layers_test.py:1005
↓ 6 callersMethod_MultiSourceFRNNWithAttentionParams
(self, single_source=False,
lingvo/core/rnn_layers_test.py:1037
↓ 6 callersMethod_MultitaskAdapterParams
(self, data_format='TBC')
lingvo/core/layers_test.py:6130
↓ 6 callersMethod_PN
Primer normalization.
lingvo/core/gshard_builder.py:1924
↓ 6 callersMethod_Pad
(self, name)
lingvo/core/batch_major_attention.py:8801
↓ 6 callersMethod_Padding
(self, name)
lingvo/core/conv_layers_builder.py:167
↓ 6 callersMethod_Project
Project layer. Simply X*W+b.
lingvo/tasks/car/builder_lib.py:440
↓ 6 callersMethod_SetCellParams
(self, cell_p, num_hidden_nodes=None)
lingvo/core/lstm_frnn_layer_test.py:104
↓ 6 callersMethod_SummarizeValue
(self, steps, tag, value, writer=None)
lingvo/runners.py:242
↓ 6 callersMethod_TNet
(self, name, idims)
lingvo/tasks/car/pointnet.py:72
↓ 6 callersMethod_TestStreamStepHelper
Main helper method.
lingvo/core/stream_step_test_base.py:113
↓ 6 callersMethod_TransformerParams
(self, layer=mt_layers.TransformerStack)
lingvo/tasks/mt/layers_test.py:28
↓ 6 callersMethod_TrueLN
True LN normalization.
lingvo/core/gshard_builder.py:1856
↓ 6 callersMethod_ValidateWeight
(self, w_name, w=None)
lingvo/core/quant_utils.py:432
↓ 6 callersMethod__init__
(self, params)
lingvo/core/quant_utils.py:754
↓ 6 callersMethod__init__
(self, params, verify_sizes=True)
lingvo/tasks/lm/layers.py:584
↓ 6 callersMethod_configure_input
(self, p, split)
lingvo/tasks/car/params/waymo_deepfusion.py:856
↓ 6 callersMethod_preconditioner_available_for_dims
Returns indicator vector if preconditioner exists for each axis.
lingvo/core/distributed_shampoo.py:249
↓ 6 callersMethod_testBeamSearchOpHelper
(self, hyp_size, num_beams,
lingvo/core/ops/beam_search_step_op_test.py:128
↓ 6 callersMethod_testDecoderFPropFloatHelper
Computes decoder from params and computes loss with random inputs.
lingvo/tasks/asr/decoder_test.py:120
↓ 6 callersMethod_testDecoderFPropHelper
(self, params)
lingvo/tasks/asr/decoder_test.py:116
↓ 6 callersMethod_testElmanHelper
(self, seqlen, use_grad, stop_fn=None)
lingvo/core/recurrent_test.py:635
↓ 6 callersMethod_testExtendStep
(self, sess, dec, encoder_outputs, tgts, num_hyps)
lingvo/tasks/mt/decoder_test.py:1276
↓ 6 callersMethod_testGradDrop
(self, graddrop_params)
lingvo/core/graddrop_test.py:25
↓ 6 callersMethod_testInputs
(self, depth=3, dtype=tf.float32)
lingvo/core/layers_with_gpipe_test.py:32
↓ 6 callersMethod_testLearner
(self, layer, learner_p)
lingvo/core/learner_test.py:158
↓ 6 callersMethod_testLocationSensitiveAttentionSameBatchSizeHelper
( self, same_batch_size, quantized=False)
lingvo/core/attention_test.py:1411
↓ 6 callersMethod_testStepSeedHelper
(self, sess, step_fn)
lingvo/core/py_utils_test.py:2566
↓ 6 callersMethod_testUnstack
(self, inputs, **kwargs)
lingvo/core/layers_test.py:3575
↓ 6 callersFunctionassert_greater_equal
(*args, **kwargs)
lingvo/core/py_utils.py:108
↓ 6 callersMethodget_quantized_weight_scale
(self, shape)
lingvo/core/gshard_builder.py:351
↓ 5 callersMethodAddGlobalVN
(self, theta)
lingvo/core/layers.py:2648
↓ 5 callersMethodAddLoss
(self, loss)
lingvo/core/py_utils.py:6593
↓ 5 callersMethodApplyExponentialMovingAverage
Wraps `self.train_op` with an op updating exponential moving average.
lingvo/core/base_model.py:875
↓ 5 callersMethodApplyPruning
(cls, pruning_hparams_dict, lstmobj, weight_name, wm_pc, dtype, scope)
lingvo/core/pruning_utils.py:129
↓ 5 callersMethodBackbone
[1]. Sec 2.2.
lingvo/tasks/car/pillars.py:238
↓ 5 callersMethodBeamSearch
(self, x, y, decoder_reduce_sum=False)
lingvo/core/tpu_summary_test.py:42
↓ 5 callersFunctionComputeGating
Computes gating for Mixture-of-Experts. See Top2GatingOnLogits for more details. Note that for local_dispatch original batch BLM is reshaped int
lingvo/core/gshard_layers.py:2840
↓ 5 callersMethodComputeLoss
(self, theta, predictions, input_batch)
lingvo/tasks/mt/model.py:74
↓ 5 callersMethodComputeStepRate
Computes the overall step rate.
lingvo/core/summary_utils.py:400
↓ 5 callersMethodCreateDecoderMetrics
Creates a dict of decoder metrics for `PostProcessDecodeOut` to update. Returns a dict mapping from string keys to `.BaseMetric` objects.
lingvo/core/base_model.py:971
↓ 5 callersMethodCreateOptimizerSlotVariable
Create optimizer slot variable and add it to the given variable dict.
lingvo/core/tpu_embedding_layers_v1.py:813
↓ 5 callersMethodDecSelfAttentionRelativeBias
DecSelfAttention with relative Attention Bias. Note that attention bias (see _DecNotVisible) ensures that current position (~row) is less tha
lingvo/core/gshard_builder.py:1562
↓ 5 callersMethodEinsumBBmBm
(self, a, b, name=None)
lingvo/core/spectrum_augmenter.py:178
↓ 5 callersMethodEncoderLayerStack
Clean EncoderLayerStack with minimal layer nesting. E.g:: encoder/ layer_000/ ln/w/ scale self_att
lingvo/core/gshard_builder.py:511
↓ 5 callersMethodExtendStep
Extend prefix as represented by `prefix_states` by one more step. This function is expected to be called during fast decoding of Transformer
lingvo/tasks/mt/decoder.py:1629
↓ 5 callersMethodFProp
Computes the loss between the predictions and labels.
lingvo/tasks/car/pillars_anchor_free.py:117
↓ 5 callersMethodFProp
Align image features to point cloud features. Args: theta: A `.NestedMap` object containing variable values of this task. image_featu
lingvo/tasks/car/deep_fusion.py:321
↓ 5 callersFunctionFindResultFromList
Find the given result from a list of expected results. Args: result: A MassOutput tuple, from running ops.mass(). expected_results: A list
lingvo/core/ops/mass_op_test.py:35
↓ 5 callersFunctionGLUVariants
Returns function corresponding to GLU variants.
lingvo/core/activations.py:119
↓ 5 callersFunctionGenerateSeedFromName
Generate a random seed from a name string. Args: name: A string. Returns: An integer seed in the range [0, 2**31 - 1).
lingvo/core/py_utils.py:1555
↓ 5 callersMethodGetDeviceName
(self, host_id)
lingvo/core/tpu_embedding_layers_v1.py:821
↓ 5 callersFunctionGetGlobalStep
Return the global_step.
lingvo/core/py_utils.py:2657
↓ 5 callersMethodGetInputBatch
Gets an input batch.
lingvo/core/base_model.py:695
↓ 5 callersMethodGetLastAlphaUpdateStep
(cls)
lingvo/core/pruning_utils.py:140
↓ 5 callersMethodGetLastCompressionOp
(cls)
lingvo/core/pruning_utils.py:167
↓ 5 callersMethodGetVariablesDict
Returns a dict of variables from the model and all its children.
lingvo/core/base_layer.py:322
↓ 5 callersMethodInitializeTokenizer
Initializes a grapheme tokenizer.
lingvo/tasks/asr/params/librispeech.py:173
↓ 5 callersMethodInitializeTokenizer
Initializes a Word Piece Tokenizer.
lingvo/tasks/asr/params/librispeech.py:263
↓ 5 callersFunctionLengthsFromPaddings
Computes lengths of each sequence in a batch, ignoring trailing padding. Note the following isn't guaranteed due to leading paddings. PaddingsFro
lingvo/core/py_utils.py:4429
↓ 5 callersMethodMaximumDistance
Maximum empirically observed Euclidean distance in world coordinates.
lingvo/tasks/car/kitti_metadata.py:59
↓ 5 callersMethodNumBinsOfHistogram
(self)
lingvo/tasks/car/breakdown_metric.py:526
↓ 5 callersMethodNumberOfPointsBins
Number of logarithmically space bins for examining points.
lingvo/tasks/car/kitti_metadata.py:71
↓ 5 callersMethodParams
(cls)
lingvo/core/trainer_test_utils.py:48
↓ 5 callersMethodParams
Params builder for APMetrics.
lingvo/tasks/car/waymo/waymo_ap_metric.py:77
↓ 5 callersFunctionParseBoxesFromTensor
lingvo/tasks/car/ops/box_util.cc:236
↓ 5 callersMethodProcessProjectionVec
(self, theta, projection_vec, projection_type)
lingvo/core/attention.py:2014
↓ 5 callersMethodRecv
Receives a tensor from the channel.
lingvo/core/sendrecv.py:94
↓ 5 callersMethodSend
Sends a tensor through the channel.
lingvo/core/sendrecv.py:76
↓ 5 callersMethodSetupDeterministicDropout
Replaced dropout layers in transformer with deterministic ones.
lingvo/core/layers_with_gpipe.py:179
↓ 5 callersMethodShutdown
Runs any necessary cleanup (potentially blocking).
lingvo/core/program.py:385
↓ 5 callersMethodStart
(self)
lingvo/core/py_utils.py:6934
↓ 5 callersMethodSync
Wait for any outstanding async operations to finish.
lingvo/core/saver.py:567
↓ 5 callersMethodTpuDequeueBatch
Create TPU dequeue ops. This should only be called within a TPU context. Returns: - A NestedMap of the input batch.
lingvo/core/base_input_generator.py:671
↓ 5 callersMethodTrainer
(self)
lingvo/trainer.py:239
← previousnext →501–600 of 9,552, ranked by callers