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

Function Mod

tensorflow/go/op/wrappers.go:33409–33421  ·  view source on GitHub ↗

Returns element-wise remainder of division. This emulates C semantics in that the result here is consistent with a truncating divide. E.g. `tf.truncatediv(x, y) * y + truncate_mod(x, y) = x`. *NOTE*: `Mod` supports broadcasting. More about broadcasting [here](http://docs.scipy.org/doc/numpy/user/b

(scope *Scope, x tf.Output, y tf.Output)

Source from the content-addressed store, hash-verified

33407// *NOTE*: `Mod` supports broadcasting. More about broadcasting
33408// [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
33409func Mod(scope *Scope, x tf.Output, y tf.Output) (z tf.Output) {
33410 if scope.Err() != nil {
33411 return
33412 }
33413 opspec := tf.OpSpec{
33414 Type: "Mod",
33415 Input: []tf.Input{
33416 x, y,
33417 },
33418 }
33419 op := scope.AddOperation(opspec)
33420 return op.Output(0)
33421}
33422
33423// Computes the power of one value to another.
33424//

Callers 2

ReducedShapeHelperFunction · 0.85
ProdGradFunction · 0.85

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected