Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ validate
Method
validate
tensorflow/python/ops/losses/losses_impl.py:70–72 ·
view source on GitHub ↗
(cls, key)
Source
from the content-addressed store, hash-verified
68
69
@classmethod
70
def
validate(cls, key):
71
if
key not in cls.all():
72
raise
ValueError(
"Invalid Reduction Key %s."
% key)
73
74
75
def
_safe_mean(losses, num_present):
Callers
4
main
Function · 0.45
compute_weighted_loss
Function · 0.45
__init__
Method · 0.45
compute_weighted_loss
Function · 0.45
Calls
1
all
Method · 0.45
Tested by
no test coverage detected