| 58 | } |
| 59 | |
| 60 | FunctionDef NonZero() { |
| 61 | return FDH::Define( |
| 62 | // Name |
| 63 | "NonZero", |
| 64 | // Args |
| 65 | {"x:T"}, |
| 66 | // Return values |
| 67 | {"y:T"}, |
| 68 | // Attr def |
| 69 | {"T:{float, double, int32, int64, string}"}, |
| 70 | // Nodes |
| 71 | { |
| 72 | {{"y"}, "Identity", {"x"}, {{"T", "$T"}}}, |
| 73 | }); |
| 74 | } |
| 75 | |
| 76 | FunctionDef IsZero() { |
| 77 | const Tensor kZero = test::AsScalar<int64>(0); |
no outgoing calls
no test coverage detected