MCPcopy Create free account

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

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

↓ 24 callersFunctionloss_fn
(y_true, y_pred)
examples/demo_custom_tf_workflow.py:58
↓ 24 callersMethodremove
(self, value)
keras/src/utils/tracking.py:407
↓ 23 callersMethod_flatten_layers
(self, include_self=True, recursive=True)
keras/src/layers/layer.py:1708
↓ 23 callersMethodcond
(execution_step, optional_outputs, next_optional_inputs)
keras/src/backend/tensorflow/trainer.py:160
↓ 23 callersFunctionov_to_keras_type
(ov_type)
keras/src/backend/openvino/core.py:771
↓ 22 callersMethod__init__
(self, reduction="sum_over_batch_size", name="ctc", dtype=None)
keras/src/losses/losses.py:1295
↓ 22 callersFunction_assert_2d
(*arrays)
keras/src/ops/linalg.py:789
↓ 22 callersMethod_build_at_init
Build the layer at `Layer.__init__`. We can only safely mark the layer as `built=True` in `Layer.__init__` if `build` is not overridd
keras/src/layers/layer.py:399
↓ 22 callersMethodactivation
(self)
keras/src/layers/rnn/gru.py:610
↓ 22 callersMethodapply
Update traininable variables according to provided gradient values. `grads` should be a list of gradient tensors with 1:1 mapping to
keras/src/optimizers/base_optimizer.py:466
↓ 22 callersMethodassertSparse
(self, x, sparse=True)
keras/src/testing/test_case.py:113
↓ 22 callersFunctionfunc
(x)
keras/src/tree/torchtree_impl.py:26
↓ 22 callersMethodget_config
(self)
keras/src/losses/losses.py:1298
↓ 20 callersFunction_resolve_axis
(x, axis)
keras/src/backend/openvino/numpy.py:334
↓ 20 callersMethodadapt
Computes the mean and variance of values in a dataset. Calling `adapt()` on a `Normalization` layer is an alternative to passing in `
keras/src/layers/preprocessing/normalization.py:251
↓ 20 callersFunctionall
DEPRECATED.
keras/src/legacy/backend.py:23
↓ 20 callersMethoddense
(self)
keras/src/saving/saving_lib_test.py:1031
↓ 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:1461
↓ 20 callersMethodset_weights
Sets the values of `layer.weights` from a list of NumPy arrays.
keras/src/layers/layer.py:774
↓ 20 callersMethodtrack
(self, attr)
keras/src/utils/tracking.py:71
↓ 19 callersFunctioncompute_quantization_parameters
Computes the scale and zero-point for quantizing weight tensors. This function calculates the scale and zero-point required for quantizing
keras/src/quantizers/quantizers.py:975
↓ 19 callersMethodencode
(self, obj)
keras/src/legacy/saving/json_utils.py:28
↓ 19 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:1384
↓ 19 callersMethodget_vocabulary
Returns the current vocabulary of the layer. Args: include_special_tokens: If `True`, the returned vocabulary wil
keras/src/layers/preprocessing/index_lookup.py:333
↓ 19 callersMethodinsert
(self, index, value)
keras/src/utils/tracking.py:151
↓ 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 callersFunctionstandardize_data_format
(data_format)
keras/src/backend/config.py:262
↓ 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:223
↓ 18 callersMethod__init__
(self, steps_per_execution=1)
keras/src/trainers/trainer_test.py:323
↓ 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:204
↓ 18 callersMethodassertAllEqual
Assert that two arrays are equal. Given two array-like objects, check that their shapes and all elements are equal.
keras/src/testing/test_case.py:100
↓ 18 callersMethodconv
(x)
keras/src/ops/nn_test.py:1906
↓ 18 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
↓ 18 callersFunctionget_model
(type="sequential", input_shape=(10,), layer_list=None)
keras/src/export/saved_model_test.py:34
↓ 18 callersMethodroundtrip
(self, obj, custom_objects=None, safe_mode=True)
keras/src/saving/serialization_lib_test.py:60
↓ 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:546
↓ 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:416
↓ 17 callersFunction_assert_square
(*arrays)
keras/src/ops/linalg.py:798
↓ 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 callersFunctionconvert_to_numpy
(x)
keras/src/backend/openvino/core.py:896
↓ 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:14
↓ 17 callersMethodset_backend
(self, backend)
keras/src/utils/backend_utils.py:84
↓ 17 callersFunctionto_tuple_or_list
Convert the non-`None` value to either a tuple or a list.
keras/src/backend/common/backend_utils.py:424
↓ 16 callersMethodassertEqualStrict
(self, a, b)
keras/src/tree/tree_test.py:91
↓ 16 callersMethodbuild
(self, y_true, y_pred)
keras/src/trainers/compile_utils.py:584
↓ 16 callersMethodcond
(x)
keras/src/ops/core_test.py:1905
↓ 16 callersMethodfrom_config
(cls, config)
keras/src/layers/core/dense.py:393
↓ 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:1419
↓ 16 callersFunctionstandardize_shape
(shape)
keras/src/backend/common/variables.py:591
↓ 16 callersFunctionvalidate_float_arg
check penalty number availability, raise ValueError if failed.
keras/src/regularizers/regularizers.py:341
↓ 15 callersMethod_prepare_directory
( self, num_classes=2, nested_dirs=False, color_mode="rgb", count=16,
keras/src/utils/image_dataset_utils_test.py:30
↓ 15 callersMethod_prepare_directory
( self, num_classes=2, nested_dirs=False, count=16, different_sequence
keras/src/utils/audio_dataset_utils_test.py:26
↓ 15 callersMethodassign_add
(self, value)
keras/src/backend/common/variables.py:300
↓ 15 callersFunctioncompute_adaptive_pooling_window_sizes
Compute small and big window sizes for adaptive pooling.
keras/src/backend/common/backend_utils.py:671
↓ 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 callersFunctiondequantize_with_sz_map
Rebuild a dequantized weight matrix from group params. This function uses the provided scale and zero tensors to dequantize the input weights
keras/src/quantizers/quantizers.py:1196
↓ 15 callersMethoddropout
(self)
keras/src/layers/rnn/gru.py:658
↓ 15 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:883
↓ 15 callersMethodreset_metrics
(self)
keras/src/trainers/trainer.py:310
↓ 15 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:187
↓ 15 callersMethoduntrack
(self, value)
keras/src/utils/tracking.py:105
↓ 14 callersMethod__init__
( self, max_val=1.0, filter_size=11, filter_sigma=1.5, k1=0.01,
keras/src/ops/image.py:2172
↓ 14 callersMethod__init__
(self, units, **kwargs)
keras/src/saving/saving_lib_test.py:26
↓ 14 callersFunction_get_interpreter_outputs
(interpreter)
keras/src/export/litert_test.py:147
↓ 14 callersFunction_set_interpreter_inputs
(interpreter, inputs)
keras/src/export/litert_test.py:115
↓ 14 callersMethodadd_variable
( self, shape, initializer, dtype=None, aggregation="sum", name=None )
keras/src/metrics/metric.py:192
↓ 14 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
↓ 14 callersMethodbackward
Backward pass computation specification. Args: ctx: Context object. grad_output: Gradient with respect to the output.
keras/src/backend/torch/core.py:820
↓ 14 callersFunctioncast
(x, dtype)
keras/src/backend/tensorflow/core.py:210
↓ 14 callersMethodcross
(cls, feature_names, crossing_dim, output_mode="one_hot")
keras/src/layers/preprocessing/feature_space.py:281
↓ 14 callersMethodinner
(*args)
keras/src/backend/torch/export.py:139
↓ 14 callersMethodquantize
(self, mode=None, type_check=True, config=None)
keras/src/layers/core/embedding.py:560
↓ 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:1089
↓ 14 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:9234
↓ 13 callersMethod_assert_compile_called
(self, method_name=None)
keras/src/trainers/trainer.py:1115
↓ 13 callersFunction_convert_to_numpy
(structure)
keras/src/export/litert_test.py:102
↓ 13 callersMethod_flatten_metrics_in_order
Turns `logs` dict into a list as per key order of `metrics_names`.
keras/src/trainers/trainer.py:1066
↓ 13 callersMethod_get_log_dirs
(self)
keras/src/callbacks/tensorboard_test.py:127
↓ 13 callersMethod_not_implemented_error
(self, attr, msg=None)
keras/src/layers/layer.py:1415
↓ 13 callersMethod_quantization_mode_error
(self, mode)
keras/src/layers/core/embedding.py:379
↓ 13 callersMethod_symbolic_build
(self, data_batch)
keras/src/backend/numpy/trainer.py:95
↓ 13 callersMethod_verify_export_and_inference
( self, model, ref_input, filepath=None, **export_kwargs )
keras/src/export/torch_test.py:99
↓ 13 callersMethodadapt
Computes a vocabulary of string terms from tokens in a dataset. Calling `adapt()` on a `TextVectorization` layer is an alternative to
keras/src/layers/preprocessing/text_vectorization.py:393
↓ 13 callersMethodcompute_mask
(self, inputs, mask=None)
keras/src/layers/attention/attention.py:244
↓ 13 callersMethoddevices
(self)
keras/src/distribution/distribution_lib.py:217
↓ 13 callersFunctionget_model
(type="sequential", input_shape=(10,), layer_list=None)
keras/src/export/litert_test.py:41
↓ 13 callersFunctionpythonify_logs
Flatten and convert log values to Python-native types. This function attempts to convert dict value by `float(value)` and skips the conversio
keras/src/utils/python_utils.py:165
↓ 13 callersMethodreset
(self)
keras/src/legacy/preprocessing/image.py:80
↓ 13 callersMethodresult
(self)
keras/src/trainers/compile_utils.py:375
↓ 12 callersMethod__init__
( self, num_thresholds=200, curve="ROC", summation_method="interpolation",
keras/src/metrics/confusion_metrics.py:1189
↓ 12 callersMethodadapt
(self, dataset)
keras/src/layers/preprocessing/feature_space.py:510
↓ 12 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
↓ 12 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
↓ 12 callersMethodbuild
(self, input_shape)
keras/src/layers/preprocessing/normalization.py:153
↓ 12 callersMethodcompile
(self, *args, **kwargs)
keras/src/saving/saving_lib_test.py:121
↓ 12 callersMethodgelu
(x, approximate=False)
keras/src/activations/activations_test.py:643
↓ 12 callersMethodget_vocabulary
Returns the current vocabulary of the layer. Args: include_special_tokens: If `True`, the returned vocabulary wil
keras/src/layers/preprocessing/text_vectorization.py:454
← previousnext →101–200 of 14,520, ranked by callers