tf.keras.Operation

input Retrieves the input tensor(s) of a symbolic operation.

Only returns the tensor(s) corresponding to the first time the operation was called.

output Retrieves the output tensor(s) of a layer.

Only returns the tensor(s) corresponding to the first time the operation was called.

Methods

call

View source

compute_output_spec

View source

from_config

View source

Creates an operation from its config.

This method is the reverse of get_config, capable of instantiating the same operation from the config dictionary.

if "dtype" in config and isinstance(config["dtype"], dict):
    policy = dtype_policies.deserialize(config["dtype"])

Args
config A Python dictionary, typically the output of get_config.

Returns
An operation instance.

get_config

View source

Returns the config of the object.

An object config is a Python dictionary (serializable) containing the information needed to re-instantiate it.

quantized_call

View source

rematerialized_call

View source

Enable rematerialization dynamically for an operation's call method.

Args
fn The original call or quantized_call method of an operation.

Returns
Rematerialized method.

symbolic_call

View source

__call__

View source

Call self as a function.