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

Function TEST

tensorflow/contrib/tensor_forest/kernels/v4/params_test.cc:24–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22using tensorflow::tensorforest::ResolveParam;
23
24TEST(ParamsTest, TestConstant) {
25 DepthDependentParam param;
26 param.set_constant_value(10.0);
27
28 ASSERT_EQ(ResolveParam(param, 0), 10.0);
29 ASSERT_EQ(ResolveParam(param, 100), 10.0);
30}
31
32TEST(ParamsTest, TestLinear) {
33 DepthDependentParam param;

Callers

nothing calls this directly

Calls 2

ResolveParamFunction · 0.85
set_constant_valueMethod · 0.80

Tested by

no test coverage detected