MCPcopy Create free account

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

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

↓ 20 callersFunction_assert_2d
(*arrays)
keras/src/ops/linalg.py:702
↓ 20 callersMethodactivation
(self)
keras/src/layers/rnn/gru.py:610
↓ 20 callersMethodfit
Fits the data generator to some sample data. This computes the internal data stats related to the data-dependent transformations, bas
keras/src/legacy/preprocessing/image.py:1460
↓ 20 callersFunctionreduce_shape
(shape, axis=None, keepdims=False)
keras/src/ops/operation_utils.py:371
↓ 19 callersFunctionalign_operand_types
(x1, x2, op_name)
keras/src/backend/openvino/core.py:78
↓ 19 callersMethodencode
(self, obj)
keras/src/legacy/saving/json_utils.py:28
↓ 19 callersFunctionget_model
(type="sequential", input_shape=(10,), layer_list=None)
keras/src/export/saved_model_test.py:34
↓ 19 callersMethodset_weights
Sets the values of `layer.weights` from a list of NumPy arrays.
keras/src/layers/layer.py:727
↓ 19 callersFunctionsqueeze_or_expand_to_same_rank
Squeeze/expand last dim if ranks differ from expected by exactly 1.
keras/src/losses/loss.py:119
↓ 19 callersMethodsummary
Prints a string summary of the network. Args: line_length: Total length of printed lines (e.g. set this to adapt
keras/src/models/model.py:221
↓ 18 callersMethod__init__
(self, steps_per_execution=1)
keras/src/trainers/trainer_test.py:322
↓ 18 callersMethod_flatten_layers
(self, include_self=True, recursive=True)
keras/src/layers/layer.py:1622
↓ 18 callersMethodadd_endpoint
Register a new serving endpoint. Args: name: `str`. The name of the endpoint. fn: A callable. It should only leverage
keras/src/export/saved_model.py:173
↓ 18 callersFunctionall
DEPRECATED.
keras/src/legacy/backend.py:22
↓ 18 callersMethodbuild
(self, input_shape)
keras/src/layers/core/einsum_dense.py:158
↓ 18 callersMethodroundtrip
(self, obj, custom_objects=None, safe_mode=True)
keras/src/saving/serialization_lib_test.py:59
↓ 18 callersFunctionset_dtype_policy
Sets the default dtype policy globally. Example: >>> keras.config.set_dtype_policy("mixed_float16")
keras/src/dtype_policies/dtype_policy.py:386
↓ 18 callersMethodwrite_out
Write the corresponding SavedModel to disk. Arguments: filepath: `str` or `pathlib.Path` object. Path where to sa
keras/src/export/saved_model.py:488
↓ 17 callersFunction_assert_square
(*arrays)
keras/src/ops/linalg.py:711
↓ 17 callersMethod_set_factor
(self, factor, factor_name)
keras/src/layers/preprocessing/image_preprocessing/random_zoom.py:148
↓ 17 callersFunctionauto_name
(prefix)
keras/src/utils/naming.py:8
↓ 17 callersFunctioncanonicalize_axis
Canonicalize an axis in [-num_dims, num_dims) to [0, num_dims).
keras/src/backend/common/backend_utils.py:263
↓ 17 callersFunctioncount_loc
(directory, exclude=("_test",), extensions=(".py",), verbose=0)
keras/src/utils/code_stats.py:4
↓ 17 callersMethodcreate_file
(self, filename, content)
keras/src/utils/code_stats_test.py:13
↓ 17 callersMethoddense
(self)
keras/src/saving/saving_lib_test.py:1010
↓ 17 callersMethodget
Creates a generator to extract data from the queue. Skip the data if it is `None`. This method is called from the main thread.
keras/src/trainers/data_adapters/py_dataset_adapter.py:642
↓ 17 callersMethodset_backend
(self, backend)
keras/src/utils/backend_utils.py:84
↓ 16 callersMethodassertEqualStrict
(self, a, b)
keras/src/tree/tree_test.py:89
↓ 16 callersMethodbuild
(self, y_true, y_pred)
keras/src/trainers/compile_utils.py:576
↓ 16 callersMethodcond
(x)
keras/src/ops/core_test.py:1619
↓ 16 callersMethodconv
(x)
keras/src/ops/nn_test.py:1787
↓ 16 callersMethoddevices
(self)
keras/src/distribution/distribution_lib.py:197
↓ 16 callersMethodget_current_value
(self, variable)
keras/src/backend/common/stateless_scope.py:82
↓ 16 callersMethodis_remote_path
(path)
keras/src/saving/saving_lib_test.py:1121
↓ 16 callersMethodtrack
Track the variables (of a layer or model) and other assets. By default, all variables used by an endpoint function are automatically
keras/src/export/saved_model.py:137
↓ 15 callersMethod_prepare_directory
( self, num_classes=2, nested_dirs=False, color_mode="rgb", count=16,
keras/src/utils/image_dataset_utils_test.py:31
↓ 15 callersMethodassign_add
(self, value)
keras/src/backend/common/variables.py:296
↓ 15 callersMethodbuild
(self, input_shape=None)
keras/src/layers/core/embedding.py:119
↓ 15 callersFunctionconvert_format
Converts bounding boxes between formats. Supported formats (case-insensitive): `"xyxy"`: [left, top, right, bottom] `"yxyx"`: [top, left,
keras/src/layers/preprocessing/image_preprocessing/bounding_boxes/converters.py:11
↓ 15 callersMethoddropout
(self)
keras/src/layers/rnn/gru.py:658
↓ 15 callersMethodinsert
(self, index, value)
keras/src/utils/tracking.py:149
↓ 15 callersFunctionto_tuple_or_list
Convert the non-`None` value to either a tuple or a list.
keras/src/backend/common/backend_utils.py:281
↓ 15 callersMethodtrack
(self, attr)
keras/src/utils/tracking.py:70
↓ 14 callersMethod_prepare_directory
( self, num_classes=2, nested_dirs=False, count=16, different_sequence
keras/src/utils/audio_dataset_utils_test.py:26
↓ 14 callersMethodadd_variable
( self, shape, initializer, dtype=None, aggregation="sum", name=None )
keras/src/metrics/metric.py:192
↓ 14 callersMethodcross
(cls, feature_names, crossing_dim, output_mode="one_hot")
keras/src/layers/preprocessing/feature_space.py:279
↓ 14 callersMethodexclude_from_weight_decay
Exclude variables from weight decay. This method must be called before the optimizer's `build` method is called. You can set specific
keras/src/optimizers/base_optimizer.py:891
↓ 14 callersMethodexport
Export the model as an artifact for inference. Args: filepath: `str` or `pathlib.Path` object. The path to save the
keras/src/models/model.py:558
↓ 14 callersMethodget
Get the H5 entry group. This method is only available in read mode. Args: path: `str`. The variable path.
keras/src/saving/saving_lib.py:1318
↓ 14 callersMethodinner
(*args)
keras/src/backend/torch/export.py:101
↓ 14 callersMethodstateless_call
Call the layer without any side effects. Args: trainable_variables: List of trainable variables of the model. non_tra
keras/src/layers/layer.py:1020
↓ 13 callersMethod__init__
( self, size, interpolation="bilinear", antialias=False, crop_to_aspec
keras/src/ops/image.py:221
↓ 13 callersMethod_get_log_dirs
(self)
keras/src/callbacks/tensorboard_test.py:127
↓ 13 callersMethod_quantization_mode_error
(self, mode)
keras/src/layers/core/embedding.py:290
↓ 13 callersMethodbackward
Backward pass computation specification. Args: ctx: Context object. grad_output: Gradient with respect to the output.
keras/src/backend/torch/core.py:718
↓ 13 callersMethodcompute_mask
(self, inputs, mask=None)
keras/src/layers/attention/attention.py:246
↓ 13 callersMethodquantize
(self, mode, type_check=True, config=None)
keras/src/layers/core/einsum_dense.py:930
↓ 13 callersMethodreset
(self)
keras/src/legacy/preprocessing/image.py:79
↓ 13 callersFunctionsum
Sum of a tensor over the given axes. Args: x: Input tensor. axis: Axis or axes along which the sum is computed. The default is to
keras/src/ops/numpy.py:7308
↓ 12 callersMethod__init__
( self, num_thresholds=200, curve="ROC", summation_method="interpolation",
keras/src/metrics/confusion_metrics.py:1189
↓ 12 callersMethod_not_implemented_error
(self, attr, msg=None)
keras/src/layers/layer.py:1338
↓ 12 callersMethodassign_add
Add a value to a variable. This should be used in optimizers instead of `variable.assign_add(value)` to support backend specific opti
keras/src/optimizers/base_optimizer.py:429
↓ 12 callersMethodcompile
(self, *args, **kwargs)
keras/src/saving/saving_lib_test.py:120
↓ 12 callersMethodgelu
(x, approximate=False)
keras/src/activations/activations_test.py:643
↓ 12 callersFunctionslice_along_axis
Slice a Tensor along the given axis.
keras/src/backend/common/backend_utils.py:516
↓ 12 callersMethoduntrack
(self, value)
keras/src/utils/tracking.py:103
↓ 11 callersMethod_assert_compile_called
(self, method_name=None)
keras/src/trainers/trainer.py:1051
↓ 11 callersMethod_flatten_metrics_in_order
Turns `logs` dict into a list as per key order of `metrics_names`.
keras/src/trainers/trainer.py:1030
↓ 11 callersMethod_symbolic_build
(self, data_batch)
keras/src/backend/numpy/trainer.py:94
↓ 11 callersMethodadapt
(self, dataset)
keras/src/layers/preprocessing/feature_space.py:508
↓ 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:1186
↓ 11 callersMethodadd_optimizer_variables
Add optimizer variables from the list of trainable model variables. Create an optimizer variable based on the information of the supplied
keras/src/optimizers/base_optimizer.py:327
↓ 11 callersMethodassign_sub
Subtract a value from a variable. This should be used in optimizers instead of `variable.assign_sub(value)` to support backend specif
keras/src/optimizers/base_optimizer.py:443
↓ 11 callersFunctioncast
(x, dtype)
keras/src/backend/tensorflow/core.py:209
↓ 11 callersMethodcompute_output_spec
(self, x)
keras/src/ops/nn.py:547
↓ 11 callersFunctiondtype_policy
Returns the current default dtype policy object.
keras/src/dtype_policies/dtype_policy.py:417
↓ 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 callersMethodparameters
(self, recurse=True)
keras/src/utils/torch_utils.py:107
↓ 11 callersFunctionstandardize_data_format
(data_format)
keras/src/backend/config.py:262
↓ 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:324
↓ 10 callersMethod__init__
(self, seed=None)
keras/src/initializers/random_initializers.py:557
↓ 10 callersMethod__init__
(self, length=None, reverse=False, unroll=1, *, name=None)
keras/src/ops/core.py:82
↓ 10 callersFunction_cast_seed
(seed)
keras/src/backend/tensorflow/random.py:10
↓ 10 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
↓ 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 callersFunctionany
DEPRECATED.
keras/src/legacy/backend.py:29
↓ 10 callersMethodcelu
(x, alpha=1.0)
keras/src/activations/activations_test.py:672
↓ 10 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
↓ 10 callersFunctioncompute_quantization_parameters
Computes the scale and zero-point for quantization. This function calculates the scale and zero-point required for quantizing a given te
keras/src/quantizers/quantizers.py:732
↓ 10 callersMethodenable_lora
( self, rank, lora_alpha=None, a_initializer="he_uniform", b_initializ
keras/src/layers/core/dense.py:199
↓ 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_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 callersMethodinitialize
(self)
keras/src/utils/module_utils.py:25
↓ 10 callersFunctionjax_draw_seed
(seed)
keras/src/backend/jax/random.py:9
↓ 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
← previousnext →101–200 of 12,633, ranked by callers