MCPcopy Create free account

hub / github.com/tensorflow/lingvo / functions

Functions9,552 in github.com/tensorflow/lingvo

↓ 5 callersMethodUpdate
Like dict.update, adds/replaces values from other.
lingvo/core/nested_map.py:360
↓ 5 callersMethodZeros
tf.zeros().
lingvo/core/py_utils.py:1027
↓ 5 callersMethod_AccumulateHistogram
Accumulate histogram of binned statistic by label. Args: statistics: int32 np.array of shape [K, 1] of binned statistic labels: int32
lingvo/tasks/car/breakdown_metric.py:173
↓ 5 callersFunction_Add
Adds tensors in nmap_x with respective tensors in nmap_y. Args: nmap_x: A `.NestedMap` of tensors. nmap_y: A `.NestedMap` of tensors. Re
lingvo/core/recurrent.py:268
↓ 5 callersFunction_AugmentState
Augments state0 with additional state.
lingvo/core/recurrent.py:808
↓ 5 callersMethod_BiEncoderParams
(self)
lingvo/tasks/mt/encoder_test.py:77
↓ 5 callersMethod_ConstructGPipeBatchMajorTransformerLayer
( self, decoder=False, packed=True, dropout=0.1 )
lingvo/core/batch_major_attention_test.py:5571
↓ 5 callersMethod_DatasetSummaryWriter
Returns the FileWriter object to use for summaries.
lingvo/core/program.py:1265
↓ 5 callersFunction_Einsum
(eq, x, y, name=None)
lingvo/core/gshard_layers.py:3062
↓ 5 callersMethod_FeedForwardNetworksApplyGating
(self, name)
lingvo/core/gshard_builder.py:2170
↓ 5 callersMethod_GenerateMetricsWithTestData
(self, num_classes)
lingvo/tasks/car/breakdown_metric_test.py:43
↓ 5 callersMethod_GetInputs
(self, reshape_m=False)
lingvo/core/gshard_builder_test.py:204
↓ 5 callersMethod_GetUninitializedVarNames
(self, sess)
lingvo/core/checkpointer.py:347
↓ 5 callersFunction_Import
Imports the python module of the given name.
lingvo/model_imports.py:25
↓ 5 callersMethod_Inputs
(self, dtype=tf.float32, packed_input=False)
lingvo/tasks/mt/decoder_test.py:1711
↓ 5 callersMethod_InputsForAttentionTest
(self, dtype=tf.float32, has_task_ids=False)
lingvo/tasks/mt/decoder_test.py:1011
↓ 5 callersFunction_IsNamedTuple
Returns whether an object is an instance of a collections.namedtuple. Examples:: _IsNamedTuple((42, 'hi')) ==> False Foo = collections.nam
lingvo/core/hyperparams.py:107
↓ 5 callersMethod_KeyErrorString
(self, name: str)
lingvo/core/hyperparams.py:349
↓ 5 callersMethod_LayerNormGate
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:1656
↓ 5 callersMethod_Loss
(self, params, batch_size=2, class_ids=None, logits=None, alpha=1.0)
lingvo/core/layers_test.py:4452
↓ 5 callersMethod_Map
(self, name, fn, **kwargs)
lingvo/tasks/car/builder_lib.py:151
↓ 5 callersMethod_Max
(self, name)
lingvo/tasks/car/builder_lib.py:154
↓ 5 callersMethod_MaybeConsumeSymbol
Attempt to consume the given symbol. The symbol must be a member of the symbol set: []()=, Args: symbol: The symbol that we expect at
lingvo/core/builder_layers.py:796
↓ 5 callersMethod_MaybeFakeQuant
(self, inputs, min_v, max_v, num_bits)
lingvo/core/quant_utils.py:1646
↓ 5 callersMethod_PaddedSoftmax
Performs a softmax as if padding were applied after exponentiation. The default implementation uses numerical techniques to approximate this
lingvo/core/attention.py:408
↓ 5 callersMethod_Par
Helper to construct a parallel layer which merge branches.
lingvo/tasks/car/builder_lib.py:207
↓ 5 callersMethod_PreLoadInput
(self)
lingvo/core/gshard_builder_test.py:619
↓ 5 callersMethod_RelativeAttentionBiasWeights
Helper for '->rb' Graph edge.
lingvo/core/gshard_builder.py:1713
↓ 5 callersMethod_ScaledBatchSize
(self)
lingvo/tasks/mt/input_generator.py:966
↓ 5 callersFunction_SmoothL1Norm
Smoothed L1 norm.
lingvo/tasks/car/geometry.py:339
↓ 5 callersMethod_StreamStepDimensions
Returns dimensions commonly used in StreamStep methods. Args: inputs: The query_vec parameter of StreamStep. Returns: A NestedMa
lingvo/core/batch_major_attention.py:3271
↓ 5 callersMethod_SummarizeValue
(self, steps, tag, value)
lingvo/runners.py:667
↓ 5 callersMethod_TestGraph
(self)
lingvo/core/inference_graph_exporter_test.py:363
↓ 5 callersMethod_ThreadCall
Call async thread with default Error callback to break main.
lingvo/core/program.py:1952
↓ 5 callersFunction_ToTensorArray
Create TensorArray from v, of size max_seq_length.
lingvo/tasks/asr/decoder.py:35
↓ 5 callersFunction_ToUnicode
(line)
lingvo/core/scorers.py:22
↓ 5 callersMethod_ValidateTaskScope
(self, task_call_scope: str)
lingvo/core/tpu_embedding_layers_v1.py:143
↓ 5 callersFunction_Wrap
(self, *args, **kwargs)
lingvo/core/test_utils.py:50
↓ 5 callersMethod__init__
(self, params)
lingvo/core/step.py:58
↓ 5 callersMethod__init__
(self, params)
lingvo/core/conv_layers_with_time_padding.py:638
↓ 5 callersMethod__init__
(self, params)
lingvo/core/base_model.py:353
↓ 5 callersMethod__init__
(self)
lingvo/core/metrics.py:186
↓ 5 callersMethod__init__
(self, params)
lingvo/core/gshard_layers.py:68
↓ 5 callersFunction_random_uniform_op
(use_stateless_op)
lingvo/core/spectrum_augmenter.py:39
↓ 5 callersMethod_testBeamSearchStoppingHelper
(self, beam_size, ensure_full_beam,
lingvo/core/ops/beam_search_step_op_test.py:719
↓ 5 callersMethod_testHelper
(self, pooling_type, inputs, input_paddings,
lingvo/core/conv_layers_with_time_padding_test.py:974
↓ 5 callersMethod_testKmeansSimpleEmbeddingLayer
(self, use_matmul, use_3d_weight_t
lingvo/core/layers_test.py:3916
↓ 5 callersMethod_testParams
(self, dims, vocab)
lingvo/tasks/lm/layers_test.py:29
↓ 5 callersMethod_testParams
(self)
lingvo/tasks/punctuator/model_test.py:63
↓ 5 callersMethod_testPerStepSourcePaddingHelper
(self, atten, depth=6, atten_state=None)
lingvo/core/attention_test.py:1707
↓ 5 callersMethod_testSimpleEmbeddingLayer
(self, use_matmul, use_3d_weight_tensor,
lingvo/core/layers_test.py:3851
↓ 5 callersMethod_to_manual
(self, val)
lingvo/core/var_tmp_wrappers.py:127
↓ 5 callersMethoddata
()
lingvo/core/base_input_generator_test.py:506
↓ 5 callersMethodpartition_tensor
Returns partitioned tensors.
lingvo/core/distributed_shampoo.py:103
↓ 5 callersFunctionrun_basic_graph
(use_nested_map, bucket_fn=lambda x: 1, bucket_batch_limit=8)
lingvo/core/generic_input_test.py:39
↓ 4 callersMethodAddChild
Add existing layer or layers as sublayer.
lingvo/core/base_layer.py:1041
↓ 4 callersMethodAddEvalMetric
Adds a metric to the eval metrics. Args: name: A python string. The name of the metric. value: A scalar Tensor. weight: A scala
lingvo/core/base_model.py:1062
↓ 4 callersMethodAddFrameworkInputs
Add framework tensors like step_seed and global_step to inputs. This is only necessary when using `func`, as wrapping is handled automaticall
lingvo/core/py_utils.py:5993
↓ 4 callersMethodApplyClipping
(self, theta, x)
lingvo/tasks/mt/encoder.py:137
↓ 4 callersMethodArea
lingvo/tasks/car/ops/box_util.cc:166
↓ 4 callersMethodAssignAnchors
Assigns anchors to bboxes using a similarity function (SSD-based). Each anchor box is assigned to the top matching ground truth box. Ground t
lingvo/tasks/car/detection_3d_lib.py:262
↓ 4 callersFunctionBucketId
lingvo/tasks/car/ops/ps_utils.cc:35
↓ 4 callersMethodCompute
Compute the input layer.
lingvo/core/recurrent.py:1200
↓ 4 callersMethodComputeAndUpdateMoments
Computes moments and updates state. Args: theta: A `.NestedMap` object containing weights' values of this layer and its children la
lingvo/core/bn_layers.py:306
↓ 4 callersMethodComputeContextVectorWithCachedSource
Same as the ComputeContextVectorWithSource api above, except values ... in source_vecs, source_contexts and source_padding are ordered differentl
lingvo/core/attention.py:2292
↓ 4 callersFunctionComputeInputSourceDistribution
lingvo/core/ops/yielder_test_helper.cc:72
↓ 4 callersMethodComputePredictions
(self, theta, batch)
lingvo/tasks/mt/model.py:58
↓ 4 callersMethodConstructFPropGraph
(self)
lingvo/core/base_model.py:1266
↓ 4 callersMethodCornerLoss
Corner regularization loss. This function computes the corner loss, an alternative regression loss for box residuals. This was used in the Fr
lingvo/tasks/car/detection_3d_lib.py:93
↓ 4 callersFunctionCurrent
Returns the current cluster specification. E.g.:: with Cluster(cluster_params) as foo: model = p.Instantiate() model.FProp() # FP
lingvo/core/cluster_factory.py:29
↓ 4 callersMethodDType
(self)
lingvo/tasks/car/base_extractor.py:170
↓ 4 callersMethodDecSelfAttention
TransformerDecoder SelfAttention. Note that attention bias (see _DecNotvisible) ensures that current position (~row) is less that memory posi
lingvo/core/gshard_builder.py:1249
↓ 4 callersMethodDecoder
(self)
lingvo/trainer.py:247
↓ 4 callersMethodDepthwiseConv2D
(self, name, in_dim, depth_multiplier,
lingvo/core/conv_layers_builder.py:249
↓ 4 callersMethodDequeueCpuPassthrough
Create CPU dequeue ops. Args: concat: Whether to concat the passthrough batches for each host into one batch. Returns: N
lingvo/core/base_input_generator.py:947
↓ 4 callersMethodDeviceLoopSetupEager
Set up device-loop-level params.
lingvo/core/base_input_generator.py:866
↓ 4 callersMethodDisable
Disables the accumulator (must be balanced with Enable).
lingvo/core/base_layer.py:71
↓ 4 callersMethodEinsumBxycBxBxyc
(self, a, b, name=None)
lingvo/core/spectrum_augmenter.py:187
↓ 4 callersMethodEnable
Enables the accumulator (must balance a Disable).
lingvo/core/base_layer.py:75
↓ 4 callersMethodEvaler
(self)
lingvo/trainer.py:243
↓ 4 callersMethodExtendSourcePacked
Extend cached source_vecs and source_contexts by one more timestep. Args: theta: A `.NestedMap` object containing weights' values of this l
lingvo/core/attention.py:1889
↓ 4 callersMethodExtendStep
Transformer Layer, extend one step in decoding. This function is expected to be called during fast decoding of Transformer models. Args:
lingvo/core/layers_with_attention.py:1516
↓ 4 callersMethodExtractUsingExtractors
Extracts Tensors from a tf.Example record using self.extractors. Args: record: A tf.Example input to pass to tf.io.parse_single_example.
lingvo/tasks/car/base_extractor.py:298
↓ 4 callersMethodFProp
Forward pass. Args: theta: A NestedMap object containing weights' values of this layer and its children layers. inputs: A Nes
lingvo/core/reversible_layers.py:115
↓ 4 callersMethodFProp
Round-robin every children cells in cell_tpl among worker devices. Args: theta: A NestedMap object containing weights' values of this layer
lingvo/core/gpipe.py:296
↓ 4 callersMethodFProp
Forward function. The default implementation here assumes the cell forward function is composed of two functions:: _Gates(_Mix(theta
lingvo/core/rnn_cell.py:96
↓ 4 callersMethodFProp
Applies SymbolInsertionLayer. We take in a `x`, which represents the groundtruth sequence (i.e., English sequence). We return a sampled rolli
lingvo/core/insertion.py:155
↓ 4 callersFunctionFwd
(args)
lingvo/core/recurrent.py:700
↓ 4 callersMethodGINFeaturizerV2
GIN-based Featurizer for Model V2.
lingvo/tasks/car/starnet.py:125
↓ 4 callersFunctionGenerateProtoDef
lingvo/tools/generate_proto_def.cc:40
↓ 4 callersFunctionGetBeamSearchHelperResults
(sess, num_hyps_per_beam, pass_seq_lengths=False
lingvo/core/beam_search_helper_test.py:25
↓ 4 callersMethodGetCheckpointId
(filename_prefix)
lingvo/core/saver.py:291
↓ 4 callersMethodGetTask
(self, task_name: str)
lingvo/core/base_model.py:1597
↓ 4 callersFunctionGetVariableShapePrefixes
Return the list of shape prefixes for CreateVariable().
lingvo/core/py_utils.py:1651
↓ 4 callersMethodGlobalBatchSize
Returns the total batch size (for stats), int or dynamic int tensor.
lingvo/core/base_input_generator.py:350
↓ 4 callersMethodInfeedBatchSize
Returns the batch size of the input batch: int or dynamic int tensor.
lingvo/core/base_input_generator.py:359
↓ 4 callersMethodIoU
lingvo/tasks/car/ops/box_util.cc:222
↓ 4 callersFunctionIsDupe
lingvo/core/ops/beam_search_step_op_top_k_test.cc:95
↓ 4 callersMethodKeys
Returns a list of all the keys in nested/array-style form if needed.
lingvo/core/nested_map.py:276
↓ 4 callersMethodLinear
Linear layer for predicting residuals and classification logits.
lingvo/tasks/car/starnet.py:70
← previousnext →601–700 of 9,552, ranked by callers