MCPcopy Create free account

hub / github.com/keras-team/keras / functions

Functions14,520 in github.com/keras-team/keras

↓ 12 callersMethodinitialize
(self)
keras/src/utils/module_utils.py:25
↓ 12 callersMethodparameters
(self, recurse=True)
keras/src/utils/torch_utils.py:107
↓ 11 callersMethod__init__
(self, length=None, reverse=False, unroll=1, *, name=None)
keras/src/ops/core.py:83
↓ 11 callersMethod_create_dummy_data
Create dummy training data.
keras/src/callbacks/orbax_checkpoint_test.py:39
↓ 11 callersMethod_get_train_data_dict
( self, as_dataset=False, as_tensors=False, as_labeled_dataset=False,
keras/src/layers/preprocessing/feature_space_test.py:16
↓ 11 callersMethod_var_key
(self, variable)
keras/src/optimizers/base_optimizer.py:230
↓ 11 callersMethodadd_loss
Can be called inside of the `call()` method to add a scalar loss. Example: ```python class MyLayer(Layer): ...
keras/src/layers/layer.py:1255
↓ 11 callersMethodbuild
(self, input_shape=None)
keras/src/layers/core/reversible_embedding.py:109
↓ 11 callersMethodbuild
(self, y_true, y_pred)
keras/src/trainers/compile_utils.py:183
↓ 11 callersFunctioncheck_conv_input_channels
Validate a conv input against its kernel shape. Used by `conv`, `depthwise_conv`, and `separable_conv` — all share the convention that the ke
keras/src/backend/common/backend_utils.py:373
↓ 11 callersFunctionclone_model
Clone a Functional or Sequential `Model` instance. Model cloning is similar to calling a model on new inputs, except that it creates new laye
keras/src/models/cloning.py:14
↓ 11 callersMethodcompute_output_spec
(self, x)
keras/src/ops/nn.py:554
↓ 11 callersMethoddistribute_dataset
Create a distributed dataset from the original global dataset. Args: dataset: the original global dataset instance. Retu
keras/src/distribution/distribution_lib.py:425
↓ 11 callersFunctiondtype_policy
Returns the current default dtype policy object.
keras/src/dtype_policies/dtype_policy.py:577
↓ 11 callersMethodenable_lora
( self, rank, lora_alpha=None, a_initializer="he_uniform", b_initializ
keras/src/layers/core/dense.py:234
↓ 11 callersMethodfrom_config
(cls, config)
keras/src/layers/rnn/gru.py:709
↓ 11 callersMethodget_config
(self)
keras/src/layers/core/dense.py:367
↓ 11 callersMethodget_inputs
(self)
keras/src/layers/preprocessing/feature_space.py:550
↓ 11 callersFunctionmodel_to_dot
Convert a Keras model to dot format. Args: model: A Keras model instance. show_shapes: whether to display shape information.
keras/src/utils/model_visualization.py:195
↓ 11 callersMethodmulti_plot_model
(self, model, name, expand_nested=False)
integration_tests/model_visualization_test.py:86
↓ 11 callersMethodndim
The number of dimensions of the variable.
keras/src/backend/common/variables.py:326
↓ 11 callersFunctionslice_along_axis
Slice a Tensor along the given axis.
keras/src/backend/common/backend_utils.py:659
↓ 11 callersFunctionstandardize_tuple
Transforms non-negative/positive integer/integers into an integer tuple. Args: value: int or iterable of ints. The value to validate and
keras/src/utils/argument_validation.py:1
↓ 11 callersMethodupdate_hessian_with_batch
Updates the running average of the Hessian matrix with a new batch. This method computes the Hessian matrix for a given batch of inp
keras/src/quantizers/gptq.py:323
↓ 10 callersMethod__init__
(self, seed=None, input_axes=None, output_axes=None)
keras/src/initializers/random_initializers.py:594
↓ 10 callersFunction_cast_seed
(seed)
keras/src/backend/tensorflow/random.py:10
↓ 10 callersMethod_create_test_model
Create a simple test model compatible with 2-device sharding.
keras/src/callbacks/orbax_checkpoint_test.py:26
↓ 10 callersMethod_prepare_directory
( self, num_classes=2, nested_dirs=False, count=16, length=20 )
keras/src/utils/text_dataset_utils_test.py:13
↓ 10 callersMethodadapt
(self, data, steps=None)
keras/src/layers/preprocessing/index_lookup.py:645
↓ 10 callersFunctionany
DEPRECATED.
keras/src/legacy/backend.py:30
↓ 10 callersMethodapply
(self, grads, trainable_variables=None)
keras/src/optimizers/loss_scale_optimizer.py:201
↓ 10 callersMethodbuild
(self, var_list)
keras/src/optimizers/loss_scale_optimizer.py:104
↓ 10 callersMethodbuild
(self, var_list)
keras/src/optimizers/multi_optimizer.py:246
↓ 10 callersFunctioncanonicalize_axes
Canonicalize an axis or axes to a tuple of non-negative integers.
keras/src/backend/common/backend_utils.py:361
↓ 10 callersMethodcelu
(x, alpha=1.0)
keras/src/activations/activations_test.py:672
↓ 10 callersMethodclone
(self)
keras/src/initializers/initializer.py:96
↓ 10 callersMethodconvert_to_numpy
Convert a tensor to a NumPy array. Only called after slicing using `__getitem__`. Args: x: the tensor to convert.
keras/src/trainers/data_adapters/array_slicing.py:66
↓ 10 callersMethodget_config
Return the serializable config of the metric.
keras/src/metrics/metric.py:229
↓ 10 callersMethodget_config
(self)
keras/src/metrics/confusion_metrics.py:1579
↓ 10 callersFunctionget_dataloader
Prepares and chunks the calibration dataloader, repeating short datasets. All processing happens on the CPU. Args: tokenizer: Th
keras/src/quantizers/gptq_core.py:87
↓ 10 callersFunctionget_edge_dict
(dot)
integration_tests/model_visualization_test.py:37
↓ 10 callersFunctionget_file
Downloads a file from a URL if it not already in the cache. By default the file at the url `origin` is downloaded to the cache_dir `~/.keras`
keras/src/utils/file_utils.py:214
↓ 10 callersMethodglu
(x, axis=-1)
keras/src/activations/activations_test.py:688
↓ 10 callersMethodhard_tanh
(x)
keras/src/activations/activations_test.py:712
↓ 10 callersFunctionis_nnx_enabled
Checks whether NNX specific features are enabled for the JAX backend. Returns: bool: `True` if NNX backend features are enabled, `False`
keras/src/backend/config.py:237
↓ 10 callersFunctionjax_draw_seed
(seed)
keras/src/backend/jax/random.py:9
↓ 10 callersMethodkeys
(self)
keras/src/saving/saving_lib.py:1449
↓ 10 callersFunctionlist_summaries
Read all summaries under the logdir into a `_SummaryFile`. Args: logdir: A path to a directory that contains zero or more event fil
keras/src/callbacks/tensorboard_test.py:64
↓ 10 callersMethodlock
(self, msg=None)
keras/src/utils/tracking.py:111
↓ 10 callersFunctionmap
Map a function over leading array axes. Like Python’s builtin map, except inputs and outputs are in the form of stacked arrays. Consider usin
keras/src/ops/core.py:38
↓ 10 callersFunctionmax
(x, axis=None, keepdims=False, initial=None)
keras/src/backend/jax/numpy.py:266
↓ 10 callersFunctionmin
DEPRECATED.
keras/src/legacy/backend.py:1016
↓ 10 callersMethodset
(self, object_id, obj)
keras/src/legacy/saving/serialization.py:81
↓ 10 callersMethodstateless_apply
Stateless version of `apply` that returns modified variables. Args: optimizer_variables: list of tensors containing the current v
keras/src/optimizers/base_optimizer.py:633
↓ 10 callersMethodtest_function
(inputs, target_layout)
keras/src/backend/jax/distribution_lib_test.py:99
↓ 10 callersMethodupdate_state
(self, y_true, y_pred, sample_weight=None)
guides/training_with_built_in_methods.py:327
↓ 10 callersMethodupdate_state
(self, y_true, y_pred, sample_weight=None)
keras/src/trainers/compile_utils.py:344
↓ 9 callersMethod__init__
(self, units=32, input_dim=32)
guides/making_new_layers_and_models_via_subclassing.py:50
↓ 9 callersMethod__init__
(self, mode="reduced", *, name=None)
keras/src/ops/linalg.py:403
↓ 9 callersFunction_get_basic_functional_model
(compile=True)
keras/src/saving/saving_lib_test.py:221
↓ 9 callersMethod_get_metrics_result_or_logs
Returns model metrics as a dict if the keys match with input logs. When the training / evaluation is performed with an asynchronous steps,
keras/src/trainers/trainer.py:1035
↓ 9 callersFunction_get_model_multi_outputs_list
()
keras/src/models/model_test.py:30
↓ 9 callersFunction_raise_if_no_gfile
(path)
keras/src/utils/file_utils.py:521
↓ 9 callersMethod_test_binary_op_method
(self, mock_method, other, operator)
keras/src/backend/common/keras_tensor_test.py:187
↓ 9 callersMethodbuild
Builds layers and variables. Args: query_shape: Shape of the `query` tensor. value_shape: Shape of the `value` tensor
keras/src/layers/attention/multi_head_attention.py:266
↓ 9 callersMethodclear
(self)
keras/src/utils/tracking.py:418
↓ 9 callersMethodcompile
(self, d_optimizer, g_optimizer, loss_fn)
guides/custom_train_step_in_torch.py:392
↓ 9 callersMethodcompile
Compile the distiller with proper integration. Arguments: optimizer: Optimizer for training the student model. loss:
keras/src/distillation/distiller.py:386
↓ 9 callersMethodcompute_output_shape
(self, input_shape)
keras/src/layers/pooling/base_pooling.py:63
↓ 9 callersMethodget_config
(self)
keras/src/ops/operation_test.py:95
↓ 9 callersMethodget_weights
(self)
keras/src/callbacks/early_stopping_test.py:182
↓ 9 callersFunctionis_remote_path
Determines if a given filepath indicates a remote location. This function checks if the filepath represents a known remote pattern such
keras/src/utils/file_utils.py:496
↓ 9 callersMethodloss_fn
(y_true, y_pred)
keras/src/models/model_test.py:1036
↓ 9 callersMethodquantize
(self, mode=None, type_check=True, config=None)
keras/src/layers/layer.py:1343
↓ 9 callersMethodquantize
(self, mode=None, type_check=True, config=None)
keras/src/layers/core/reversible_embedding.py:383
↓ 9 callersFunctionquantize_with_zero_point
Quantize a float tensor into discrete levels [0, maxq] using per-tensor/per-channel/grouped scaling. Returns `q` (same dtype as inputs/scales
keras/src/quantizers/quantizers.py:1111
↓ 9 callersMethodresult
(self)
guides/training_with_built_in_methods.py:336
↓ 9 callersMethodset_vocabulary
Sets vocabulary (and optionally document frequency) for this layer. This method sets the vocabulary and idf weights for this layer directly,
keras/src/layers/preprocessing/index_lookup.py:411
↓ 9 callersMethodsparse_plus
(x)
keras/src/activations/activations_test.py:764
↓ 9 callersMethodsquareplus
(x, b=4)
keras/src/activations/activations_test.py:741
↓ 9 callersMethodstateless_apply
(self, optimizer_variables, grads, trainable_variables)
keras/src/optimizers/loss_scale_optimizer.py:126
↓ 9 callersMethodthreshold
(x, threshold_value, value)
keras/src/activations/activations_test.py:730
↓ 9 callersMethodunlock
(self)
keras/src/utils/tracking.py:116
↓ 9 callersMethodupdate
()
keras/src/backend/tensorflow/optimizer_distribute_test.py:62
↓ 8 callersFunctionEfficientNet
Instantiates the EfficientNet architecture. Args: width_coefficient: float, scaling coefficient for network width. depth_coefficient:
keras/src/applications/efficientnet.py:208
↓ 8 callersMethod__init__
(self, k, sorted=True, *, name=None)
keras/src/ops/math.py:233
↓ 8 callersFunction_get_interpreter
(filepath)
keras/src/export/litert_torch_test.py:49
↓ 8 callersFunction_preprocess_padding
(padding)
keras/src/legacy/backend.py:458
↓ 8 callersFunction_ref_softmax
(values)
keras/src/activations/activations_test.py:8
↓ 8 callersFunction_segment_reduce_validation
(data, segment_ids)
keras/src/ops/math.py:13
↓ 8 callersMethod_skip_test_for_stateless
(self, stateless)
keras/src/optimizers/loss_scale_optimizer_test.py:12
↓ 8 callersFunctionabs
DEPRECATED.
keras/src/legacy/backend.py:17
↓ 8 callersMethodadapt
Computes bin boundaries from quantiles in a input dataset. Calling `adapt()` on a `Discretization` layer is an alternative to passing
keras/src/layers/preprocessing/discretization.py:159
↓ 8 callersFunctionbackend
Publicly accessible method for determining the current backend. Returns: String, the name of the backend Keras is currently using. One of
keras/src/backend/config.py:377
↓ 8 callersMethodbuild
(self, input_shape)
keras/src/layers/convolutional/base_conv.py:176
↓ 8 callersFunctionclip_to_image_size
Clips bounding boxes to be within the image dimensions. Args: bounding_boxes: A dictionary with 'boxes' shape `(N, 4)` or `(ba
keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/converters.py:74
↓ 8 callersMethodclose
(self)
keras/src/saving/saving_lib.py:1182
↓ 8 callersMethodcompute_output_spec
(self, x)
keras/src/ops/math.py:778
↓ 8 callersFunctioncurrent_path
()
keras/src/backend/common/name_scope.py:65
↓ 8 callersMethodfit
( self, x=None, y=None, batch_size=None, epochs=1, verbose="au
keras/src/backend/jax/trainer.py:362
← previousnext →201–300 of 14,520, ranked by callers