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

Function IsRealNumbers

tensorflow/java/src/gen/cc/op_specs.cc:32–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace {
31
32inline bool IsRealNumbers(const AttrValue& values) {
33 if (!values.has_list()) {
34 return RealNumberTypes().Contains(values.type());
35 }
36 for (int i = 0; i < values.list().type_size(); ++i) {
37 if (!RealNumberTypes().Contains(values.list().type(i))) {
38 return false;
39 }
40 }
41 return true;
42}
43
44class TypeResolver {
45 public:

Callers 1

TypesOfMethod · 0.85

Calls 4

RealNumberTypesFunction · 0.85
listMethod · 0.80
typeMethod · 0.65
ContainsMethod · 0.45

Tested by

no test coverage detected