MCPcopy Create free account

hub / github.com/tensorflow/lingvo / functions

Functions9,552 in github.com/tensorflow/lingvo

↓ 26 callersMethodnum_elements
Returns the size (num of elements) of the tensor.
lingvo/core/tshape.py:61
↓ 25 callersMethodConditionalAppend
Updates history file iff we are recording given metric and jobname.
lingvo/core/early_stop.py:106
↓ 25 callersMethodQEinsum
( self, equation, lhs, rhs, *, lhs_name: Optional[str] = None, rhs_n
lingvo/core/quant_utils.py:834
↓ 25 callersMethodTrackQActs
Tracks activations and creates variables for quantization as needed.
lingvo/core/quant_utils.py:1029
↓ 25 callersFunction_MaybeSplit
(x)
lingvo/core/gshard_layers.py:2017
↓ 24 callersMethodEvalClassIndices
List of int32 indices for the classes that should be evaled.
lingvo/tasks/car/waymo/waymo_metadata.py:46
↓ 24 callersMethodFPropWithPosition
Generates a Tensor of sinusoids with different frequencies. Uses the provided position tensor to generate positional embeddings. Refer to FPr
lingvo/core/layers.py:3277
↓ 24 callersMethodOutShape
Compute the output shape given the input shape.
lingvo/core/layers.py:87
↓ 24 callersMethodParams
(cls)
lingvo/core/gshard_builder.py:133
↓ 24 callersMethodParams
(cls)
lingvo/core/steps/rnn_steps.py:25
↓ 24 callersMethodUpdate
Update this metric with a newly evaluated image. Args: str_id: A string. Unique identifier of an image. result: A NestedMap with thes
lingvo/tasks/car/ap_metric.py:356
↓ 24 callersMethod_CreateLayerVariables
(self)
lingvo/core/layers.py:4973
↓ 24 callersMethod_ReshapeM
Reshapes tensor x according to model_dim_reshape_segments.
lingvo/core/gshard_builder.py:2332
↓ 23 callersMethodAddSubplot
r"""Adds a subplot from tensors using plot_fun to populate the subplot axes. Args: tensor_list: A list of tensors to be realized as numpy a
lingvo/core/plot.py:204
↓ 23 callersMethodParams
(cls)
lingvo/tasks/car/waymo/waymo_open_input_generator.py:1019
↓ 23 callersMethodParams
(cls)
lingvo/tasks/mt/decoder.py:407
↓ 23 callersMethodParams
Configs for `MTEncoderV1`.
lingvo/tasks/mt/encoder.py:37
↓ 23 callersMethodSummary
(self, name)
lingvo/core/metrics.py:533
↓ 23 callersMethod_evalProjectionLayer
(self, reshape_to_2d=False, batch_norm=True,
lingvo/core/layers_test.py:2212
↓ 23 callersMethodwhile_loop
Wrapper for tf.while_loop that adds summary_tensors to loop vars.
lingvo/core/tpu_summary.py:115
↓ 23 callersMethodzero_state
(self, theta, batch_size)
lingvo/tasks/lm/layers.py:601
↓ 22 callersMethodFProp
Builds FProp graph. Args: theta: A NestedMap of Tensors, see base class. inputs: A Tensor of shape [batch, seqlen, dim0]. paddi
lingvo/core/conformer_layer.py:281
↓ 22 callersMethodMeshSplit
(self, name, tensor_split_dims_mapping)
lingvo/core/batch_major_attention.py:8804
↓ 22 callersMethodParams
(cls)
lingvo/core/multitask_model_test.py:33
↓ 22 callersMethodParams
(cls)
lingvo/core/gshard_builder_test.py:57
↓ 22 callersMethodParams
(cls)
lingvo/tasks/lm/params/synthetic_packed_input.py:381
↓ 22 callersMethodSave
Generate a new checkpoint. May raise exceptions for failures or sanity checks. If using async mode, exceptions are raised in the following Sa
lingvo/core/saver.py:436
↓ 22 callersMethod_FC
Fully connected layer, with optional batch norm.
lingvo/tasks/car/builder_lib.py:124
↓ 22 callersMethod_evalConvLayerFProp
(self, params_builder=layers.Conv2DLayer.Params, batch_nor
lingvo/core/layers_test.py:1242
↓ 21 callersMethodBeamSearchDecode
Performs beam search based decoding. Args: encoder_outputs: the outputs of the encoder. num_hyps_per_beam_override: If set to a value
lingvo/core/base_decoder.py:344
↓ 21 callersMethodClassNames
Returns a list of human-interpretable strings.
lingvo/tasks/car/waymo/waymo_metadata.py:31
↓ 21 callersMethodClose
lingvo/core/ops/record_yielder.cc:438
↓ 21 callersMethodComputeGradients
Allows subclasses control computation of gradients.
lingvo/core/optimizer.py:69
↓ 21 callersMethodIsCompatible
Returns true if self and other are compatible. If x and y are two compatible `.NestedMap`, `x.Pack(y.Flatten())` produces y and vice versa.
lingvo/core/nested_map.py:480
↓ 21 callersMethodParams
(cls)
lingvo/core/base_layer_test.py:61
↓ 21 callersMethodParams
The params of this layer.
lingvo/core/builder.py:56
↓ 21 callersMethodParams
(cls)
lingvo/core/conformer_layer.py:59
↓ 21 callersMethodParams
(cls)
lingvo/tasks/car/params/waymo.py:114
↓ 21 callersMethod_Inputs
(self, dtype=tf.float32, init_step_ids=False)
lingvo/tasks/mt/decoder_test.py:39
↓ 21 callersMethod__init__
(self, params)
lingvo/core/batch_major_attention.py:8735
↓ 20 callersMethodDebugString
Returns a debug string for this `.NestedMap`.
lingvo/core/nested_map.py:519
↓ 20 callersMethodExport
Called by an eval job before evaluation. Can be used to write additional information to disk. Args: train_dir: Directory in which any
lingvo/core/base_model.py:1126
↓ 20 callersMethodGetPreprocessedInputBatch
(self)
lingvo/core/base_model_test.py:220
↓ 20 callersMethodParams
(cls)
lingvo/tasks/milan/dual_encoder.py:303
↓ 20 callersMethodReset
lingvo/core/ops/text_packing.cc:91
↓ 20 callersMethod_Id
Identity. (t_1, ..., t_n) -> (t1, ..., t_n).
lingvo/core/builder.py:143
↓ 20 callersMethodnorm
(val)
lingvo/core/distributed_shampoo_test.py:69
↓ 20 callersMethodzero_state
(self, theta, batch_size)
lingvo/core/rnn_layers.py:99
↓ 19 callersMethodLayerNorm
Applies layer normalization on the last dimension of 'x'. Args: theta: a NestedMap of layer params. gate_name: the name of the gate,
lingvo/core/rnn_cell.py:2446
↓ 19 callersMethodParams
(cls)
lingvo/core/builder_layers.py:1339
↓ 19 callersMethodParams
(cls)
lingvo/core/optimizer.py:40
↓ 19 callersMethodTestParams
(cls)
lingvo/core/base_model_test.py:67
↓ 19 callersMethod_MaybeSplit
(self, x)
lingvo/core/gshard_layers.py:1680
↓ 19 callersMethod_testParams
(self)
lingvo/tasks/asr/model_test.py:47
↓ 19 callersMethodadd_summary
(self)
lingvo/core/cluster.py:542
↓ 19 callersMethodgradient
(self)
lingvo/core/layers.py:6100
↓ 19 callersMethodrank
Returns the rank of the tensor.
lingvo/core/tshape.py:52
↓ 18 callersMethodComputeContextVectorWithSource
Computes the context vector given the current query output. Note: `packed_src.source_vecs` are the vectors that are used to compute the atten
lingvo/core/attention.py:949
↓ 18 callersMethodConstructFPropBPropGraph
(self)
lingvo/core/base_model.py:1263
↓ 18 callersMethodGetPlacer
Returns a device function for placing ops within the cluster. Args: strategy: A string. Identifier for a placement strategy. By default, we
lingvo/core/cluster.py:517
↓ 18 callersMethodGetStep
(step)
lingvo/core/schedule.py:35
↓ 18 callersMethodParams
(cls)
lingvo/core/rnn_cell.py:62
↓ 18 callersMethodParams
(cls)
lingvo/core/checkpointer_test.py:34
↓ 18 callersMethodSet
Sets multiple parameters. Dots in names indicate navigation into nested Params objects. We do not allow navigation into lists or dicts, and m
lingvo/core/hyperparams.py:428
↓ 18 callersMethod_AttentionState
(self, name, shape, dtype=None)
lingvo/core/gshard_builder.py:2220
↓ 18 callersMethod_Identity
Apply identity transformation.
lingvo/core/gshard_builder.py:1969
↓ 18 callersMethod_MeshSplit
(self, x, tensor_split_dims_mapping)
lingvo/core/gshard_builder.py:2435
↓ 18 callersMethod_PaddedMax
Padding aware max pooling layer, emits either a single tensor or map.
lingvo/tasks/car/builder_lib.py:685
↓ 18 callersMethod_checkConvLayerShapes
(self, input_shape, filter_shape,
lingvo/core/layers_test.py:1143
↓ 18 callersFunctionwith_dependencies
(dependencies, output_tensor)
lingvo/core/py_utils.py:219
↓ 17 callersMethodFProp
Compute RNN forward pass. Args: theta: A `.NestedMap` object containing weights' values of this layer and its children layers.
lingvo/core/rnn_layers.py:102
↓ 17 callersMethodFromAqtActActMatmul
Rescales output of dynamic matmul (act * act). Args: output: output, corresponds to tf.matmul(act_lhs, act_rhs) Returns: Rescale
lingvo/core/quant_utils.py:989
↓ 17 callersMethodGet
Get parameter. Dots in names indicate navigation into nested Params objects. We do not allow navigation into lists or dicts, and may ban thes
lingvo/core/hyperparams.py:454
↓ 17 callersMethodParams
(cls)
lingvo/tasks/asr/model.py:34
↓ 17 callersMethodRegisterAccumulator
Registers an accumulator for this layer. An accumulator is used to propagate some state to a future point, where it is acted on (typically as
lingvo/core/base_layer.py:755
↓ 17 callersFunctionSplit
Wrapper for xla_sharding.split. Args: x: Tensor to annotate. split_dimension: xla_sharding.split arg. num_devices: xla_sharding.split a
lingvo/core/gshard_utils.py:39
↓ 17 callersMethodStringsToIds
Tokenize strs into vocab ids. Args: strs: A vector of strings. max_length: An int providing the max_length for strs. external_a
lingvo/core/tokenizers.py:60
↓ 17 callersMethodToAqtActActInputs
Quantizes activations for (act * act) matmul AQT style. This only scales, rounds and clips; resulting quantized acts would be either integer
lingvo/core/quant_utils.py:967
↓ 17 callersMethodWorkerDeviceInModelSplit
Returns the device to use for 'device_index' for the current model split. Args: device_index: An int, the device index within 'model_split'
lingvo/core/cluster.py:493
↓ 17 callersFunction_DecoderParams
Create a small decoder for testing.
lingvo/tasks/asr/decoder_test.py:31
↓ 17 callersMethod_Dropout
(self, name, keep_prob, noise_shape_broadcast_dims=None)
lingvo/core/gshard_builder.py:310
↓ 17 callersMethod_GetQDomain
Gets the QDomain matching a given domain name. Args: domain: User specified domain name. Returns: The requested QDomain, the 'de
lingvo/core/quant_utils.py:656
↓ 17 callersFunction_HistogramSummary
Adds a histogram summary for 'v' into the default tf graph.
lingvo/core/rnn_cell.py:29
↓ 17 callersMethod__init__
(self, params)
lingvo/tasks/car/input_preprocessors.py:3538
↓ 17 callersFunctionassert_equal
(*args, **kwargs)
lingvo/core/py_utils.py:101
↓ 16 callersMethodApply
Applies the gradient to the variable. Args: lr: A scalar or a callable that returns the learning rate. var_grad: A `.NestedMap` of (v
lingvo/core/optimizer.py:99
↓ 16 callersFunctionCompareToGoldenSingleFloat
Compare golden value with real value. When running the bazel tests with FLAGS.update_goldens to be True, this function automatically updates the
lingvo/core/test_utils.py:434
↓ 16 callersMethodFProp
Real fusion logic happens here. Works for single step or for the entire sequence. Args: theta: A NestedMap object containing weights f
lingvo/tasks/asr/fusion.py:109
↓ 16 callersFunctionFlatten
Flattens 'x' by extracting tensors from nested structures to a list.
lingvo/core/py_utils.py:860
↓ 16 callersMethodGetItem
Gets the value for the nested `key`. Names with underscores will be considered as one key. Args: key: str of the form `([A-Za-
lingvo/core/nested_map.py:214
↓ 16 callersMethodGetOutput
Returns the output value given the current state.
lingvo/core/rnn_cell.py:88
↓ 16 callersMethodTrackQWeight
Creates a QWeight with weight_name and given shape. Args: weight_name: Unique name (within layer) for this weight. shape: Expected sh
lingvo/core/quant_utils.py:1041
↓ 16 callersMethod_AdjustMSplitByName
(self, p_split_name)
lingvo/core/gshard_builder.py:303
↓ 16 callersMethod_ShouldStop
Check if the runner should stop. Args: sess: tf.Session. step: The current GlobalStep. check_early_stop: Whether or not we want
lingvo/base_runner.py:181
↓ 16 callersMethod_Var
(self, name, weights, shared_var_collection_suffix=None)
lingvo/core/gshard_builder.py:319
↓ 16 callersFunctionnp_power
Computes mat_g^alpha for a square symmetric matrix mat_g.
lingvo/core/matrix_functions_test.py:25
↓ 15 callersMethodBProp
(self)
lingvo/core/base_model.py:718
↓ 15 callersMethodFProp
Performs one inference step on the RNN cell. If external_inputs is not None, it is added as another act input to the RNNCell. Args:
lingvo/core/steps/rnn_steps.py:64
↓ 15 callersMethodFinalize
Finishes creation of the overall figure, returning the image summary.
lingvo/core/plot.py:264
↓ 15 callersMethodGetDatasetParams
Convenience function that returns the param for the given dataset name. Args: dataset: A python string. Typically, 'Dev', 'Test', etc.
lingvo/core/base_model_params.py:60
← previousnext →101–200 of 9,552, ranked by callers