MCPcopy Create free account

hub / github.com/tensorflow/lingvo / functions

Functions9,552 in github.com/tensorflow/lingvo

↓ 10 callersMethodGetClass
Returns a ModelParams subclass with the given `class_key`. Args: class_key: string key of the ModelParams subclass to return. Returns:
lingvo/model_registry.py:226
↓ 10 callersFunctionGetFanInFanOut
Returns (fan_in, fan_out) of a weight variable of the give shape.
lingvo/core/py_utils.py:1661
↓ 10 callersMethodKaimingUniformFanInRelu
(scale=1.0, seed=None)
lingvo/core/py_utils.py:1215
↓ 10 callersMethodListDevices
Lists devices in the job. Args: job_spec: A param object specifying a job in a training cluster. Returns: Returns a 2D np string
lingvo/core/cluster.py:180
↓ 10 callersMethodParams
(cls)
lingvo/core/inference_graph_exporter_test.py:174
↓ 10 callersMethodResidualsToBBoxes
r"""Converts anchor_boxes and residuals to predicted bboxes. This converts predicted residuals into bboxes using the following formulae::
lingvo/tasks/car/detection_3d_lib.py:540
↓ 10 callersMethodTextDiff
Return the differences between this object and another as a string. Args: other: The other Params object. Returns: A string of d
lingvo/core/hyperparams.py:1036
↓ 10 callersMethodToProto
Writes to a Hyperparams proto. Serializes the Hyperparams into a proto that can be then written to disk or sent over the network. Note that s
lingvo/core/hyperparams.py:529
↓ 10 callersMethodTransformDTypes
(self, dtypes)
lingvo/tasks/car/input_preprocessors.py:3553
↓ 10 callersMethodUpdateState
Returns updated state from theta.
lingvo/core/gshard_layers.py:1279
↓ 10 callersMethod_Conv2D
Conv2D layer.
lingvo/core/builder.py:360
↓ 10 callersMethod_CreateCheckpointer
Creates one of several checkpointer versions. Args: train_params: the training hyperparams. TODO(jlipschultz): unify with BaseRunn
lingvo/executor.py:398
↓ 10 callersMethod_DefaultLN
Layer norm with default params.
lingvo/core/batch_major_attention.py:8759
↓ 10 callersMethod_Expect
(self, expected_cost, p, *inputs)
lingvo/core/builder_test.py:31
↓ 10 callersMethod_GetInputs
(self, batch, seq_len, dim)
lingvo/core/gshard_layers_test.py:83
↓ 10 callersMethod_GetSession
(self, **kwargs)
lingvo/runners.py:559
↓ 10 callersFunction_GetTrainableVars
(layer)
lingvo/core/layers_test.py:56
↓ 10 callersMethod_LoadBoundingBoxes
Load a specified set of bounding boxes. If no boxes are found, return None. Note that we do *not* specify 'difficulty' as an option due to h
lingvo/tasks/car/ap_metric.py:209
↓ 10 callersMethod_RoPE
Add RoPE (Rotary Position Embedding) [1] to q/k proj vector. [1] https://arxiv.org/abs/2104.09864 Args: theta: A `.NestedMap` object c
lingvo/core/batch_major_attention.py:1479
↓ 10 callersMethod_RunLoop
Runs `loop_func`, retrying on expected errors. Args: job_name: string job name. loop_func: callable to run and retry on expected erro
lingvo/base_runner.py:399
↓ 10 callersMethod_SeqToKey
Apply sequence to only update the value at a specific key. Note: This is the more general version of SeqOnKey. SeqOnKey automatically extract
lingvo/tasks/car/builder_lib.py:624
↓ 10 callersFunction_ShouldAddSummary
()
lingvo/core/summary_utils.py:38
↓ 10 callersMethod__init__
(self, params)
lingvo/core/datasource.py:45
↓ 10 callersMethod__init__
Initializes SRUCell.
lingvo/core/rnn_cell.py:2244
↓ 10 callersFunction_clone_module
Shallow clone of module `m`.
lingvo/compat.py:54
↓ 9 callersMethodAddGlobalVN
(self, theta)
lingvo/core/rnn_cell.py:2426
↓ 9 callersMethodAddHypRef
Update WER when adding one pair of strings: (hypothesis, reference). Args: hypothesis: Hypothesis string. reference: Reference string
lingvo/tasks/asr/tools/simple_wer_v2.py:269
↓ 9 callersMethodApplyClipping
(self, theta, x)
lingvo/tasks/mt/decoder.py:652
↓ 9 callersMethodAttention
Attention with multiple attention heads. Keys, values share same dimensionality params.self.params.attention_key_value_dim. Args:
lingvo/core/gshard_builder.py:1081
↓ 9 callersMethodDecode
Constructs the inference graph for eval decoding. Args: input_batch: The input batch. A `NestedMap` of tensors. Or, if input batch
lingvo/core/base_model.py:918
↓ 9 callersMethodDenseReluDense
(self, name, decoder=False, activation='relu')
lingvo/core/gshard_builder.py:952
↓ 9 callersMethodEinsumWithModelDim
(self, name, equation)
lingvo/core/gshard_builder.py:2375
↓ 9 callersMethodEncode
Converts string `text` to integer ids and the encoded string. Encoding includes prefixing the beginning-of-word token to each word. Returns:
lingvo/core/wpm_encoder.py:140
↓ 9 callersMethodFProp
Compute the encoding for each point. Args: unused_theta: The variables for this task. points_xyz: a floating point tf.Tensor with sha
lingvo/tasks/car/car_layers.py:146
↓ 9 callersFunctionGeneratePlainTextTestData
lingvo/core/ops/yielder_test_helper.cc:24
↓ 9 callersMethodGet
Gets the value for nested `key`, returns `default` if key does not exist. Names with underscores will be considered as one key. Args:
lingvo/core/nested_map.py:241
↓ 9 callersMethodGetParamsForDataset
Returns params for job `job_name` on the dataset `dataset_name`.
lingvo/trainer.py:301
↓ 9 callersFunctionHasShape
Syntactic sugar for asserting that tensor has the expected shape. Args: tensor: A Tensor. expected_shape: A Python list or a 1D tensor. Ele
lingvo/core/py_utils.py:483
↓ 9 callersMethodMask
(self)
lingvo/core/gshard_builder.py:478
↓ 9 callersMethodName
(self)
lingvo/base_trial.py:52
↓ 9 callersMethodParams
(cls)
lingvo/core/base_model.py:124
↓ 9 callersMethodParams
(cls)
lingvo/core/gshard_layers.py:50
↓ 9 callersMethodParams
(cls)
lingvo/tasks/asr/model_test.py:39
↓ 9 callersMethodQMatmul
( self, lhs, rhs, *, lhs_name: Optional[str] = None, rhs_name: Optional[st
lingvo/core/quant_utils.py:784
↓ 9 callersMethodScaledHuberLoss
r"""Scaled Huber (SmoothL1) Loss. This function wraps tf.losses.huber_loss to rescale it by 1 / delta, and uses Reduction.NONE. This sca
lingvo/tasks/car/detection_3d_lib.py:57
↓ 9 callersMethodStoreTensor
Add tensor 't' to 'named_tensors' at 'path'. A path may be a name or a path into a NestedMap. For instance, StoreTensor('a.b.c', [1]), is equ
lingvo/core/builder_layers.py:603
↓ 9 callersMethodToTextWithTypes
Same as ToText but encodes both params and their types.
lingvo/core/hyperparams.py:1017
↓ 9 callersMethodUpdate
lingvo/tasks/car/ops/ps_utils.cc:159
↓ 9 callersMethod_AttentionInputs
(self, input_dim=4, dtype=tf.float32)
lingvo/core/batch_major_attention_test.py:80
↓ 9 callersMethod_AttentionWeights
Helper for '->wq,wk,wv,wo' Graph edge.
lingvo/core/gshard_builder.py:1973
↓ 9 callersMethod_CreateLayerVariables
(self)
lingvo/core/rnn_cell.py:2259
↓ 9 callersMethod_EncoderParams
(self)
lingvo/tasks/mt/encoder_test.py:230
↓ 9 callersFunction_Feature
(shape, dtype=tf.float32)
lingvo/tasks/milan/common_schema.py:20
↓ 9 callersMethod_GetPcm
Gets sample wav file pcm samples. Returns: (sample_rate, mono_audio) where mono_audio is of shape [batch (=1), samples].
lingvo/tasks/asr/frontend_test.py:27
↓ 9 callersMethod_MLP
(self, name, dims, use_bn=True, activation_fn=None)
lingvo/tasks/car/builder_lib.py:144
↓ 9 callersFunction_ResetTfStatus
Reset TF status. The implementation differs in Graph and Eager mode. In Graph mode, the status is renewed by entering a new graph. In Eager mode,
lingvo/core/layers_test.py:37
↓ 9 callersMethod_TestFProp
(self, p, in_shape, expected_out_shape)
lingvo/tasks/car/builder_lib_test.py:26
↓ 9 callersMethod_TestSchedulerHelper
(self, schedule, global_step, count_a)
lingvo/core/task_scheduler_test.py:29
↓ 9 callersMethod__init__
(self, params)
lingvo/core/rnn_layers.py:87
↓ 9 callersMethod_child_variable_scope_override
(self)
lingvo/core/rnn_layers.py:96
↓ 9 callersMethod_commonChecks
(self, data)
lingvo/core/base_input_generator_test.py:485
↓ 9 callersMethod_testParams
(self)
lingvo/tasks/mt/model_test.py:166
↓ 9 callersMethodreset
Resets object state. In particular, removes the reference to the TPUEmbedding object, if present, necessary for re-running unit tests with a
lingvo/core/tpu_embedding_manager.py:71
↓ 8 callersMethodAdd
Adds a bbox. Args: img_id: A unique image identifier. score: The confidence score. box: [1 x 7] numpy array. difficulty:
lingvo/tasks/car/ap_metric.py:50
↓ 8 callersMethodCommonInputOpArgs
Common input params.
lingvo/core/base_input_generator.py:316
↓ 8 callersMethodCreateTpuEnqueueOps
Create the host-side enqueue ops. This should be called in an outer non-TPU context. Note: This is only used for the TF1 infeed based traini
lingvo/core/base_input_generator.py:446
↓ 8 callersMethodDetector
(self, name, idims, odims, conv_init_method=None, bias_params_init=None)
lingvo/tasks/car/pillars.py:250
↓ 8 callersMethodFPropMeta
(cls, p, *args)
lingvo/core/builder_layers.py:1363
↓ 8 callersMethodInfeedSetupGraph
Set up the input pipeline for TPU in Graph mode.
lingvo/core/base_input_generator.py:857
↓ 8 callersMethodLoad
lingvo/core/ops/simple_vocab.cc:61
↓ 8 callersMethodMerge
lingvo/core/ops/record_batcher_test.cc:67
↓ 8 callersMethodMoE
Returns layer params to compute (outputs, scalar_aux_loss).
lingvo/core/gshard_builder.py:1054
↓ 8 callersMethodParams
(cls)
lingvo/core/conv_layers_builder.py:130
↓ 8 callersMethodParams
(cls)
lingvo/core/tpu_embedding_layers.py:210
↓ 8 callersMethodParams
(cls)
lingvo/tasks/asr/decoder.py:1382
↓ 8 callersMethodParams
(cls)
lingvo/tasks/milan/params/generic_datasets.py:63
↓ 8 callersMethodRestoreIfNeeded
If vars are not initialized, restore from checkpoint.
lingvo/core/checkpointer.py:390
↓ 8 callersMethodStack
(value_type)
lingvo/core/symbolic.py:77
↓ 8 callersMethodTrain
Returns Params for the training dataset.
lingvo/core/base_model_params.py:133
↓ 8 callersFunctionTransform
Replaces every nested value x in 'v' with fn(x) and returns the result.
lingvo/core/py_utils.py:870
↓ 8 callersMethodTransformFeatures
(self, features)
lingvo/tasks/car/input_preprocessors.py:3543
↓ 8 callersMethodTransformWithKey
Returns a copy of this `.NestedMap` with fn applied on each key/value.
lingvo/core/nested_map.py:474
↓ 8 callersMethodTransformerEncoderLayer
(inputs, paddings) -> (encoded, paddings). Args: name: the string name of the encoder layer params. stride: To use every k-th token,
lingvo/core/batch_major_attention.py:9434
↓ 8 callersMethodUpdate
(self, key, value, weight=1.0)
lingvo/core/metrics.py:132
↓ 8 callersMethod_Activation
(self, name, activation)
lingvo/core/conv_layers_builder.py:164
↓ 8 callersMethod_Add
(self, name, residual_weight=1.0, apply_residual=True)
lingvo/core/batch_major_attention.py:8746
↓ 8 callersMethod_Add
(self, name, residual_weight=1.0)
lingvo/core/gshard_builder.py:1965
↓ 8 callersMethod_AddEvalMetric
(self, key, value, weight)
lingvo/core/learner.py:502
↓ 8 callersMethod_BN
(self, name, dims)
lingvo/tasks/car/builder_lib.py:79
↓ 8 callersMethod_Dropout
(self, name, keep_prob)
lingvo/tasks/car/builder_lib.py:181
↓ 8 callersFunction_EmptyLike
Creates a set of empty initialized tensors. Args: nmap: A `.NestedMap` of tensors. Returns: A `.NestedMap` of tensors. Each tensor has t
lingvo/core/recurrent.py:241
↓ 8 callersMethod_ExpandToNumHyps
Repeat each value according to num hyps. Args: source_enc_len: source encoder length; int [batch]. num_hyps_per_beam: number of hypot
lingvo/tasks/mt/decoder.py:381
↓ 8 callersMethod_FeaturesFC
Applies a FC layer to `features` key, emits a `NestedMap`.
lingvo/tasks/car/builder_lib.py:752
↓ 8 callersMethod_Fetch
(self, name)
lingvo/tasks/car/builder_lib.py:184
↓ 8 callersMethod_GetAP
(self, gt_bbox, gt_imgid, pd_bbox, pd_imgid, pd_score, algorithm)
lingvo/tasks/car/ops/average_precision_3d_op_test.py:34
↓ 8 callersMethod_GetInputs
(self, dtype=tf.float32)
lingvo/core/conformer_layer_test.py:133
↓ 8 callersMethod_GetParams
(self, kernel_size, dims, state_layer=True,
lingvo/core/gshard_layers_test.py:70
↓ 8 callersMethod_InstantiateTaskModel
Instantiates a model object for a particular task. MultiTaskModels can accept a shared_model parameter, but SingleTaskModels cannot, so we ha
lingvo/core/program.py:403
↓ 8 callersMethod_Linear
(self, name, idims, odims, params_init=None)
lingvo/tasks/car/builder_lib.py:90
↓ 8 callersMethod_ValidateArgName
(self, op_arg_name: str, name: Optional[str])
lingvo/core/quant_utils.py:306
← previousnext →301–400 of 9,552, ranked by callers