MCPcopy Index your code
hub / github.com/evalplus/evalplus / is_floats

Function is_floats

evalplus/eval/__init__.py:111–119  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

109
110
111def is_floats(x) -> bool:
112 # check if it is float; List[float]; Tuple[float]
113 if isinstance(x, float):
114 return True
115 if isinstance(x, (list, tuple)) and x:
116 return all(isinstance(i, float) for i in x)
117 if isinstance(x, np.ndarray):
118 return x.dtype == np.float64 or x.dtype == np.float32
119 return False
120
121
122def unsafe_execute(

Callers 1

unsafe_executeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…