MCPcopy Create free account

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

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

↓ 2 callersMethod__enter__
(self)
keras/src/backend/jax/core.py:537
↓ 2 callersMethod__exit__
(self, *args, **kwargs)
keras/src/backend/jax/core.py:555
↓ 2 callersMethod__init__
(self, units, name=None)
examples/demo_custom_layer_backend_agnostic.py:14
↓ 2 callersMethod__init__
( self, use_batch_norm=False, num_torch_layers=1, *args, **kwargs )
keras/src/utils/torch_utils_test.py:20
↓ 2 callersMethod__init__
(self, name, **kwargs)
keras/src/backend/jax/core.py:533
↓ 2 callersMethod__init__
(self, name="hinge", dtype=None)
keras/src/metrics/hinge_metrics.py:32
↓ 2 callersMethod__init__
(self, name="sum", dtype=None)
keras/src/metrics/reduction_metrics.py:74
↓ 2 callersMethod__init__
(self, feature_names, crossing_dim, output_mode="one_hot")
keras/src/layers/preprocessing/feature_space.py:16
↓ 2 callersMethod__init__
(self, metrics, name="metrics_list", output_name=None)
keras/src/trainers/compile_utils.py:14
↓ 2 callersMethod__init__
(self, array)
keras/src/trainers/data_adapters/array_slicing.py:39
↓ 2 callersMethod__init__
(self, name=None)
keras/src/dtype_policies/dtype_policy.py:60
↓ 2 callersMethod__init__
(self, layer_list)
keras/src/export/saved_model_test.py:23
↓ 2 callersMethod__radd__
(self, other)
keras/src/backend/common/variables.py:483
↓ 2 callersMethod__rand__
(self, other)
keras/src/backend/common/variables.py:531
↓ 2 callersMethod__rfloordiv__
(self, other)
keras/src/backend/common/variables.py:507
↓ 2 callersMethod__rmatmul__
(self, other)
keras/src/backend/common/variables.py:525
↓ 2 callersMethod__rmod__
(self, other)
keras/src/backend/common/variables.py:513
↓ 2 callersMethod__rmul__
(self, other)
keras/src/backend/common/variables.py:495
↓ 2 callersMethod__ror__
(self, other)
keras/src/backend/common/variables.py:537
↓ 2 callersMethod__rpow__
(self, other)
keras/src/backend/common/variables.py:519
↓ 2 callersMethod__rsub__
(self, other)
keras/src/backend/common/variables.py:489
↓ 2 callersMethod__rtruediv__
(self, other)
keras/src/backend/common/variables.py:501
↓ 2 callersMethod__rxor__
(self, other)
keras/src/backend/common/variables.py:543
↓ 2 callersMethod_adamw_update_step
Update step given gradient and the associated model variable.
keras/src/optimizers/muon.py:201
↓ 2 callersFunction_adjust_block
Adjusts the input `previous path` to match the shape of the `input`. Used in situations where the output number of filters needs to be changed.
keras/src/applications/nasnet.py:556
↓ 2 callersFunction_adjust_input
(inputs, num_spatial_dims, data_format)
keras/src/backend/openvino/nn.py:178
↓ 2 callersFunction_adjust_outputs
(outputs, num_spatial_dims, data_format)
keras/src/backend/openvino/nn.py:217
↓ 2 callersFunction_adjust_padding
( padding, )
keras/src/backend/openvino/nn.py:160
↓ 2 callersMethod_adjust_scale_for_dequant
Adjusts scale tensor layout for dequantization. Helper method to handle scale adjustments before dequantization. This is the reverse
keras/src/layers/core/einsum_dense.py:1098
↓ 2 callersFunction_adjust_strides_dilation
( x, num_spatial_dims, )
keras/src/backend/openvino/nn.py:148
↓ 2 callersMethod_apply_merge_op_and_or_mask
Merge a set of inputs by applying `op_fn` and ORing the masks. We use this for `Minimum` and `Maximum` as it handles the fact that th
keras/src/layers/merging/base_merge.py:23
↓ 2 callersMethod_apply_weight_decay
(self, variables)
keras/src/optimizers/base_optimizer.py:960
↓ 2 callersMethod_assert_input_compatibility
(self, inputs)
keras/src/ops/function.py:218
↓ 2 callersMethod_assert_input_compatibility
(self, arg_0)
keras/src/layers/layer.py:1589
↓ 2 callersMethod_assert_shapes_are_compatible
Assert that two shapes are compatible.
keras/src/distillation/distiller.py:190
↓ 2 callersFunction_assert_valid_mask
(mask)
keras/src/backend/tensorflow/rnn.py:552
↓ 2 callersMethod_autoconvert_optionals
(self, step_func)
keras/src/backend/tensorflow/trainer.py:115
↓ 2 callersMethod_backend_update_step
Collective update_step that can be overridden by the backend. It is overridden by torch for performance reasons, and by TF to support
keras/src/optimizers/base_optimizer.py:614
↓ 2 callersMethod_build
Initialize TP, FP, TN, and FN tensors, given the shape of the data.
keras/src/metrics/confusion_metrics.py:1296
↓ 2 callersFunction_build_map
Topologically sort nodes in order from inputs to outputs. It uses a depth-first search to topologically sort nodes that appear in the _keras_
keras/src/ops/function.py:371
↓ 2 callersFunction_build_proj_equation
Builds an einsum equation for projections inside multi-head attention.
keras/src/layers/attention/multi_head_attention.py:799
↓ 2 callersMethod_calculate_scores
Calculates attention scores as a query-key dot product. Args: query: Query tensor of shape `(batch_size, Tq, dim)`. k
keras/src/layers/attention/attention.py:111
↓ 2 callersMethod_check_if_adapted
(self)
keras/src/layers/preprocessing/feature_space.py:682
↓ 2 callersMethod_check_if_built
(self)
keras/src/layers/preprocessing/feature_space.py:692
↓ 2 callersMethod_check_output_spec
(self, true_fn_spec, false_fn_spec)
keras/src/ops/core.py:1055
↓ 2 callersMethod_check_shape_first_dim
(self, name1, shape1, name2, shape2)
keras/src/ops/nn.py:2290
↓ 2 callersMethod_check_super_called
(self)
keras/src/metrics/metric.py:243
↓ 2 callersFunction_cholesky
(x, upper=False)
keras/src/ops/linalg.py:41
↓ 2 callersFunction_cholesky_inverse
(x, upper=False)
keras/src/ops/linalg.py:87
↓ 2 callersMethod_common_apply
(self, grads, trainable_variables=None)
keras/src/optimizers/loss_scale_optimizer.py:246
↓ 2 callersMethod_compute_elemwise_op_output_shape
Computes the shape of the resultant of an elementwise operation. Args: shape1: Tuple or None. Shape of the first tensor
keras/src/layers/merging/base_merge.py:60
↓ 2 callersFunction_compute_extrema
(x, operation, axis=None, keepdims=False, initial=None)
keras/src/backend/openvino/numpy.py:110
↓ 2 callersFunction_compute_moments
(x, axes, keepdims)
keras/src/backend/tensorflow/nn.py:862
↓ 2 callersFunction_compute_output_shape
(axes_map, grouped_axes)
keras/src/ops/einops.py:61
↓ 2 callersFunction_compute_sequence_length_from_mask
Calculate the sequence length tensor (1-D) based on the masking tensor. The masking tensor is a 2D boolean tensor with shape [batch, timestep]. F
keras/src/backend/tensorflow/rnn.py:640
↓ 2 callersFunction_conv
()
keras/src/backend/tensorflow/nn.py:311
↓ 2 callersFunction_convert_dataset_to_list
Convert `dataset` object to a list of samples. Args: dataset: A `tf.data.Dataset`, a `torch.utils.data.Dataset` object, or a
keras/src/utils/dataset_utils.py:270
↓ 2 callersFunction_create_axes_map
(axes, input_shape, axes_lengths)
keras/src/ops/einops.py:13
↓ 2 callersMethod_create_dropout_mask
(self, step_input, dropout_rate)
keras/src/layers/rnn/dropout_rnn_cell.py:22
↓ 2 callersMethod_create_h5_group
(self, path, metadata=None)
keras/src/saving/saving_lib.py:1367
↓ 2 callersMethod_create_new_shard_file
Create a new shard file and return the H5 file object.
keras/src/saving/saving_lib.py:1580
↓ 2 callersMethod_create_tar_file
Helper function to create a tar file.
keras/src/utils/file_utils_test.py:476
↓ 2 callersMethod_create_variables
Create a structure of variables from a structure of JAX arrays. `values` is traversed via JAX's `tree_map`. When a leaf is a JAX array
keras/src/utils/jax_layer.py:276
↓ 2 callersFunction_crop_images
( images, top_cropping, left_cropping, bottom_cropping, right_cropping, target_height,
keras/src/ops/image.py:1333
↓ 2 callersMethod_cross_features
(self, features)
keras/src/layers/preprocessing/feature_space.py:566
↓ 2 callersFunction_det
(x)
keras/src/ops/linalg.py:123
↓ 2 callersFunction_eig
(x)
keras/src/ops/linalg.py:159
↓ 2 callersFunction_eigh
(x)
keras/src/ops/linalg.py:196
↓ 2 callersFunction_expand_mask
(mask_t, input_t, fixed_dim=1)
keras/src/legacy/backend.py:1467
↓ 2 callersFunction_expand_mask
(mask_t, input_t, fixed_dim=1)
keras/src/backend/torch/rnn.py:48
↓ 2 callersFunction_expand_mask
(mask_t, input_t, fixed_dim=1)
keras/src/backend/tensorflow/rnn.py:116
↓ 2 callersFunction_extract_patches
( images, size, strides=None, dilation_rate=1, padding="valid", data_format=None, )
keras/src/ops/image.py:669
↓ 2 callersFunction_extract_patches_3d
( volumes, size, strides=None, dilation_rate=1, padding="valid", data_format=None, )
keras/src/ops/image.py:783
↓ 2 callersFunction_find_factors_closest_to_sqrt
(num)
keras/src/saving/file_editor.py:772
↓ 2 callersFunction_flatten_group
(axes)
keras/src/ops/einops.py:51
↓ 2 callersMethod_flatten_y
(self, y)
keras/src/trainers/compile_utils.py:326
↓ 2 callersMethod_get_audio_samples
(self, count=16, different_sequence_lengths=False)
keras/src/utils/audio_dataset_utils_test.py:11
↓ 2 callersMethod_get_batches_of_transformed_samples
Gets a batch of transformed samples. Args: index_array: Array of sample indices to include in batch. Returns:
keras/src/legacy/preprocessing/image.py:117
↓ 2 callersMethod_get_child_input_shape
(self, input_shape)
keras/src/layers/rnn/time_distributed.py:56
↓ 2 callersMethod_get_current_learning_rate
(self)
keras/src/optimizers/base_optimizer.py:785
↓ 2 callersMethod_get_dataset
(self, dataset_type, worker_count=0, num_threads=0)
keras/src/trainers/data_adapters/grain_dataset_adapter_test.py:26
↓ 2 callersMethod_get_images
(self, count=16, color_mode="rgb")
keras/src/utils/image_dataset_utils_test.py:15
↓ 2 callersMethod_get_input_channel
(self, input_shape)
keras/src/layers/convolutional/base_depthwise_conv.py:194
↓ 2 callersMethod_get_iterator
(self, slice_and_convert_fn, inputs)
keras/src/trainers/data_adapters/array_data_adapter.py:326
↓ 2 callersMethod_get_kernel_scale_shape
Get the shape of the kernel scale tensor. The kernel scale tensor is used to scale the kernel tensor. The shape of the kernel scale t
keras/src/layers/core/einsum_dense.py:981
↓ 2 callersFunction_get_model_optional_inputs
()
keras/src/models/model_test.py:160
↓ 2 callersFunction_get_model_single_output
()
keras/src/models/model_test.py:46
↓ 2 callersMethod_get_node_attribute_at_index
Private utility to retrieves an attribute (e.g. inputs) from a node. This is used to implement the properties: - output - inp
keras/src/ops/operation.py:351
↓ 2 callersFunction_get_output_shape
(output_rank, known_last_dims)
keras/src/layers/attention/multi_head_attention.py:828
↓ 2 callersMethod_get_translation_matrix
(self, translations)
keras/src/layers/preprocessing/image_preprocessing/random_translation.py:349
↓ 2 callersFunction_get_type_spec
Get the type spec of the dataset.
keras/src/utils/dataset_utils.py:659
↓ 2 callersFunction_get_unique_name
(name, used_names)
keras/src/saving/saving_lib.py:936
↓ 2 callersFunction_get_variable_value_by_path
(variables, path)
keras/src/models/model_test.py:177
↓ 2 callersMethod_get_zoom_matrix
(self, zooms, image_height, image_width)
keras/src/layers/preprocessing/image_preprocessing/random_zoom.py:389
↓ 2 callersFunction_index_to_einsum_variable
Converts an index to a einsum variable name. We simply map indices to lowercase characters, e.g. 0 -> 'a', 1 -> 'b'.
keras/src/layers/attention/multi_head_attention.py:733
↓ 2 callersMethod_initialize_tracker
(self)
keras/src/layers/layer.py:339
↓ 2 callersMethod_initialize_with_initializer
(self, initializer)
keras/src/backend/common/variables.py:412
↓ 2 callersMethod_interrupted_warning
(self)
keras/src/trainers/epoch_iterator.py:88
↓ 2 callersFunction_inv
(x)
keras/src/ops/linalg.py:229
↓ 2 callersFunction_is_inf
(x, pos=True)
keras/src/backend/openvino/numpy.py:1077
← previousnext →701–800 of 12,633, ranked by callers