MCPcopy Create free account

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

Functions12,633 in github.com/keras-team/keras

↓ 10 callersMethodlock
(self, msg=None)
keras/src/utils/tracking.py:109
↓ 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:37
↓ 10 callersFunctionmin
DEPRECATED.
keras/src/legacy/backend.py:1015
↓ 10 callersMethodset
(self, object_id, obj)
keras/src/legacy/saving/serialization.py:81
↓ 10 callersMethodupdate_state
(self, y_true, y_pred, sample_weight=None)
guides/training_with_built_in_methods.py:327
↓ 9 callersMethod__init__
(self, units=32, input_dim=32)
guides/making_new_layers_and_models_via_subclassing.py:50
↓ 9 callersMethod__init__
(self, units, **kwargs)
keras/src/saving/saving_lib_test.py:25
↓ 9 callersFunction_get_basic_functional_model
(compile=True)
keras/src/saving/saving_lib_test.py:220
↓ 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 callersMethodapply
(self, grads, trainable_variables=None)
keras/src/optimizers/loss_scale_optimizer.py:201
↓ 9 callersMethodbuild
(self, var_list)
keras/src/optimizers/loss_scale_optimizer.py:104
↓ 9 callersMethodclone
(self)
keras/src/initializers/initializer.py:83
↓ 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 callersMethodget_config
(self)
keras/src/ops/operation_test.py:94
↓ 9 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
↓ 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 callersMethodkeys
(self)
keras/src/saving/saving_lib.py:1383
↓ 9 callersMethodloss_fn
(y_true, y_pred)
keras/src/models/model_test.py:1015
↓ 9 callersMethodndim
The number of dimensions of the variable.
keras/src/backend/common/variables.py:322
↓ 9 callersMethodresult
(self)
guides/training_with_built_in_methods.py:336
↓ 9 callersMethodresult
(self)
keras/src/trainers/compile_utils.py:367
↓ 9 callersMethodsparse_plus
(x)
keras/src/activations/activations_test.py:764
↓ 9 callersMethodsquareplus
(x, b=4)
keras/src/activations/activations_test.py:741
↓ 9 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
↓ 9 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
↓ 9 callersMethodthreshold
(x, threshold_value, value)
keras/src/activations/activations_test.py:730
↓ 9 callersMethodunlock
(self)
keras/src/utils/tracking.py:114
↓ 9 callersFunctionvalidate_float_arg
check penalty number availability, raise ValueError if failed.
keras/src/regularizers/regularizers.py:341
↓ 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:137
↓ 8 callersFunction_convert_conv_transpose_padding_args_from_keras_to_torch
Convert the padding arguments from Keras to the ones used by Torch. Torch starts with an output shape of `(input-1) * stride + kernel_size`, t
keras/src/backend/common/backend_utils.py:48
↓ 8 callersFunction_preprocess_padding
(padding)
keras/src/legacy/backend.py:457
↓ 8 callersFunction_ref_softmax
(values)
keras/src/activations/activations_test.py:8
↓ 8 callersFunction_resolve_axis
(x, axis)
keras/src/backend/openvino/numpy.py:247
↓ 8 callersMethod_skip_test_for_stateless
(self, stateless)
keras/src/optimizers/loss_scale_optimizer_test.py:12
↓ 8 callersMethodadapt
(self, data, steps=None)
keras/src/layers/preprocessing/index_lookup.py:583
↓ 8 callersMethodbuild
(self, input_shape)
keras/src/layers/layer.py:418
↓ 8 callersMethodbuild
(self, input_shape)
keras/src/layers/preprocessing/normalization.py:128
↓ 8 callersMethodbuild
(self, input_shape)
keras/src/layers/convolutional/base_conv.py:176
↓ 8 callersMethodcall
(self, input)
keras/src/export/saved_model_test.py:27
↓ 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 callersMethodcompute_output_spec
(self, x)
keras/src/ops/math.py:617
↓ 8 callersMethodfrom_config
(cls, config)
keras/src/ops/core.py:1115
↓ 8 callersMethodfrom_config
(cls, config, custom_objects=None)
keras/src/models/model.py:668
↓ 8 callersMethodget_dropout_mask
(self, step_input)
keras/src/layers/rnn/dropout_rnn_cell.py:37
↓ 8 callersMethodhard_shrink
(x)
keras/src/activations/activations_test.py:721
↓ 8 callersFunctionin_stateless_scope
()
keras/src/backend/common/stateless_scope.py:100
↓ 8 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
↓ 8 callersMethodnext
(self, ordered=True)
keras/src/random/seed_generator.py:96
↓ 8 callersFunctionrearrange
Rearranges the axes of a Keras tensor according to a specified pattern, einops-style. Args: tensor: Input Keras tensor. patte
keras/src/ops/einops.py:107
↓ 8 callersMethodreset
(self)
keras/src/utils/backend_utils.py:92
↓ 8 callersMethodsetup
(self, delta=1.0)
keras/src/losses/losses_test.py:612
↓ 8 callersMethodsoft_shrink
(x, threshold=0.5)
keras/src/activations/activations_test.py:751
↓ 8 callersMethodstateless_apply
(self, optimizer_variables, grads, trainable_variables)
keras/src/optimizers/loss_scale_optimizer.py:126
↓ 8 callersMethodtanh_shrink
(x)
keras/src/activations/activations_test.py:703
↓ 8 callersMethodtest_function
(inputs, target_layout)
keras/src/backend/jax/distribution_lib_test.py:90
↓ 8 callersFunctionto_snake_case
(name)
keras/src/utils/naming.py:27
↓ 8 callersMethodtree_flatten
(self)
keras/src/utils/tracking.py:327
↓ 8 callersMethodupdate
()
keras/src/backend/tensorflow/optimizer_distribute_test.py:62
↓ 7 callersFunctionEfficientNetV2
Instantiates the EfficientNetV2 architecture using given scaling coefficients. Args: width_coefficient: float, scaling coefficient fo
keras/src/applications/efficientnet_v2.py:823
↓ 7 callersMethod__init__
(self, mode="reduced", *, name=None)
keras/src/ops/linalg.py:403
↓ 7 callersMethod__init__
( self, class_aggregation="uniform_average", num_regressors=0, name="r2_score"
keras/src/metrics/regression_metrics.py:404
↓ 7 callersMethod__init__
(self)
keras/src/models/model_test.py:126
↓ 7 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:999
↓ 7 callersMethod_get_model
(self, compile_model=True)
keras/src/callbacks/tensorboard_test.py:135
↓ 7 callersFunction_ref_log_softmax
(values)
keras/src/activations/activations_test.py:18
↓ 7 callersMethod_register_call_context_args
Registers call-context args for this layer. If this layer declares a `call()` method that accepts one or more of the given args, thos
keras/src/layers/layer.py:1746
↓ 7 callersFunctionabs
DEPRECATED.
keras/src/legacy/backend.py:16
↓ 7 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:362
↓ 7 callersMethodbuild
(self, input_shape)
keras/src/layers/convolutional/conv_test.py:726
↓ 7 callersMethodbuild
(self, y_true, y_pred)
keras/src/trainers/compile_utils.py:177
↓ 7 callersFunctioncompute_conv_transpose_padding_args_for_jax
( input_shape, kernel_shape, strides, padding, output_padding, dilation_rate, )
keras/src/backend/common/backend_utils.py:110
↓ 7 callersMethodcompute_loss
Compute the total loss, validate it, and return it. Subclasses can optionally override this method to provide custom loss computation
keras/src/trainers/trainer.py:289
↓ 7 callersFunctioncurrent_path
()
keras/src/backend/common/name_scope.py:64
↓ 7 callersMethodfunction
(iterator)
keras/src/backend/tensorflow/trainer.py:237
↓ 7 callersFunctionget
Retrieves a Keras `DTypePolicy` instance. The `identifier` may be the string name of a `DTypePolicy` class. >>> policy = dtype_policies.get(
keras/src/dtype_policies/__init__.py:61
↓ 7 callersMethodget_inputs
(self)
keras/src/layers/preprocessing/feature_space.py:544
↓ 7 callersMethodget_layer
Retrieves a layer based on either its name (unique) or index. If `name` and `index` are both provided, `index` will take precedence.
keras/src/models/model.py:180
↓ 7 callersMethodjax_state_sync
(self)
keras/src/backend/jax/trainer.py:865
↓ 7 callersMethodon_predict_batch_end
(self, batch, logs=None)
keras/src/callbacks/callback_list.py:206
↓ 7 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:833
↓ 7 callersMethodreset_metrics
(self)
keras/src/trainers/trainer.py:274
↓ 7 callersFunctionsafe_get_h5_group
Retrieve a Group within a given File or Group. Args: parent: the parent h5py.File or h5py.Group. name: the name of the Group to r
keras/src/saving/saving_lib.py:1125
↓ 7 callersMethodsetup
(self, axis=1)
keras/src/losses/losses_test.py:519
↓ 7 callersFunctionshape_equal
Check if two shapes are equal. Args: shape1: A list or tuple of integers for first shape to be compared. shape2: A list or tuple
keras/src/ops/numpy.py:88
↓ 7 callersMethodstateless_update_state
(self, metric_variables, *args, **kwargs)
keras/src/metrics/metric.py:121
↓ 7 callersMethodupdate_state
(_, y, y_pred, sample_weight=None)
keras/src/backend/tensorflow/trainer.py:669
↓ 6 callersMethod_compute_loss
Backwards compatibility wrapper for `compute_loss`. This should be used instead `compute_loss` within `train_step` and `test_step` to
keras/src/trainers/trainer.py:368
↓ 6 callersFunction_convert_data_format
(data_format, ndim)
keras/src/backend/tensorflow/nn.py:271
↓ 6 callersFunction_dict_to_ordered_dict
(structure)
keras/src/tree/torchtree_impl.py:23
↓ 6 callersMethod_get_jax_state
( self, trainable_variables=False, non_trainable_variables=False, optimizer_va
keras/src/backend/jax/trainer.py:942
↓ 6 callersFunction_get_test_layer
(layer_type, kernel_shape)
keras/src/quantizers/gptq_test.py:59
↓ 6 callersMethod_overwrite_variable_with_gradient
(self, variable)
keras/src/optimizers/base_optimizer.py:207
↓ 6 callersMethod_restore_h5_file
Ensure the current shard is the last one created.
keras/src/saving/saving_lib.py:1608
↓ 6 callersMethod_swap_variables
(self)
keras/src/callbacks/swap_ema_weights.py:112
↓ 6 callersMethod_switch_h5_file
Switch to a different H5 file with the specified mode. This is useful for retrieving information from all shards, such as the total l
keras/src/saving/saving_lib.py:1592
↓ 6 callersMethod_token_start_index
(self)
keras/src/layers/preprocessing/index_lookup.py:915
← previousnext →201–300 of 12,633, ranked by callers