current_date
CurrentDateLayer ¤
CurrentDateLayer(
name=None, input_dtype=None, output_dtype=None, **kwargs
)
Bases: BaseLayer
Returns the current UTC date in yyyy-MM-dd format.
Initialises an instance of the CurrentDateLayer layer.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name |
Optional[str]
|
Name of the layer. Defaults to |
None
|
input_dtype |
Optional[str]
|
The dtype to cast the input to. Defaults to |
None
|
output_dtype |
Optional[str]
|
The dtype to cast the output to. Defaults to |
None
|
Source code in src/kamae/keras/tensorflow/layers/current_date.py
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | |
compatible_dtypes
property
¤
compatible_dtypes
get_config ¤
get_config()
Gets the configuration of the CurrentDate layer. Used for saving and loading from a model.
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Dictionary of the configuration of the layer. |
Source code in src/kamae/keras/tensorflow/layers/current_date.py
82 83 84 85 86 87 88 89 90 | |