Module: tfm.utils
Stay organized with collections
Save and categorize content based on your preferences.
Common TF utilities.
Modules
activations
module: Activations package definition.
Functions
assert_rank(...)
: Raises an exception if the tensor rank is not of the expected rank.
clone_initializer(...)
cross_replica_concat(...)
: Concatenates the given value
across (GPU/TPU) cores, along axis
.
deserialize_keras_object(...)
get_activation(...)
: Maps an identifier to a Python function, e.g., "relu" => tf.nn.relu
.
get_replica_id(...)
: Gets replica id depending on the environment.
get_shape_list(...)
: Returns a list of the shape of tensor, preferring static dimensions.
is_special_none_tensor(...)
: Checks if a tensor is a special None Tensor.
pack_inputs(...)
: Pack a list of inputs
tensors to a tuple. (deprecated)
safe_mean(...)
: Computes a safe mean of the losses.
serialize_activation(...)
serialize_constraint(...)
serialize_initializer(...)
serialize_keras_object(...)
serialize_layer(...)
serialize_regularizer(...)
unpack_inputs(...)
: unpack a tuple of inputs
tensors to a tuple. (deprecated)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-02-02 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-02 UTC."],[],[]]