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

Class BoxKernelFunc

tensorflow/core/kernels/sampling_kernels.h:105–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103};
104
105struct BoxKernelFunc {
106 float operator()(float x) const {
107 x = std::abs(x);
108 return x < 0.5f ? 1. : x == 0.5f ? 0.5f : 0.0f;
109 }
110 float Radius() const { return 1.f; }
111};
112
113struct TriangleKernelFunc {
114 // https://en.wikipedia.org/wiki/Triangle_function

Callers 1

CreateBoxKernelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected