MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / get

Function get

tensorflow/python/keras/losses.py:1161–1173  ·  view source on GitHub ↗
(identifier)

Source from the content-addressed store, hash-verified

1159
1160@keras_export('keras.losses.get')
1161def get(identifier):
1162 if identifier is None:
1163 return None
1164 if isinstance(identifier, six.string_types):
1165 identifier = str(identifier)
1166 return deserialize(identifier)
1167 if isinstance(identifier, dict):
1168 return deserialize(identifier)
1169 elif callable(identifier):
1170 return identifier
1171 else:
1172 raise ValueError('Could not interpret '
1173 'loss function identifier:', identifier)
1174
1175
1176LABEL_DTYPES_FOR_LOSSES = {

Callers 15

getMethod · 0.50
ToShapeMethod · 0.50
DimensionsProductMethod · 0.50
LinearIndexMethod · 0.50
LinearIndexMethod · 0.50
ImportTensorDataFunction · 0.50
IsValidTFLiteMlirModuleFunction · 0.50
TensorLocFunction · 0.50
GetQuantizedTypeFunction · 0.50
GetTensorTypeFunction · 0.50
ConvertMinMaxToStatsOpFunction · 0.50

Calls 1

deserializeFunction · 0.70

Tested by 9

createLstmCompositeFuncFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
TESTFunction · 0.40
CompileHloConvAndGetMlirFunction · 0.40
TEST_FFunction · 0.40