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

Function TEST_F

tensorflow/core/ops/math_grad_test.cc:444–450  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442#endif
443
444TEST_F(MathGradTest, Error_Reporting) {
445 auto x = test::AsTensor<float>({-3.f});
446 auto dx = test::AsTensor<float>({3.f});
447 Tensor donotcare;
448 HasError(Unary("TestOpWithNoGrad", x, &donotcare),
449 "No gradient defined for op: TestOpWithNoGrad");
450}
451
452TEST_F(MathGradTest, Abs) {
453 auto x = test::AsTensor<float>({-3.f, -2.f, -1.f, 1.f, 2.f, 3.f},

Callers

nothing calls this directly

Calls 15

ExpectCloseFunction · 0.85
coshClass · 0.85
sinhClass · 0.85
asinhClass · 0.85
acoshClass · 0.85
BatchMatMulFunction · 0.85
BatchMatMulV2GradFunction · 0.85
BatchMatMulV2Function · 0.85
SummarizeValueMethod · 0.80
HasErrorFunction · 0.70
SelectGradFunction · 0.70
MatMulGradFunction · 0.70

Tested by

no test coverage detected