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

Function QuantizedMul

tensorflow/go/op/wrappers.go:36350–36367  ·  view source on GitHub ↗

Returns x * y element-wise, working on quantized buffers. Arguments: min_x: The float value that the lowest quantized `x` value represents. max_x: The float value that the highest quantized `x` value represents. min_y: The float value that the lowest quantized `y` value represents. max_y: The

(scope *Scope, x tf.Output, y tf.Output, min_x tf.Output, max_x tf.Output, min_y tf.Output, max_y tf.Output, optional ...QuantizedMulAttr)

Source from the content-addressed store, hash-verified

36348// *NOTE*: `QuantizedMul` supports limited forms of broadcasting. More about
36349// broadcasting [here](http://docs.scipy.org/doc/numpy/user/basics.broadcasting.html)
36350func QuantizedMul(scope *Scope, x tf.Output, y tf.Output, min_x tf.Output, max_x tf.Output, min_y tf.Output, max_y tf.Output, optional ...QuantizedMulAttr) (z tf.Output, min_z tf.Output, max_z tf.Output) {
36351 if scope.Err() != nil {
36352 return
36353 }
36354 attrs := map[string]interface{}{}
36355 for _, a := range optional {
36356 a(attrs)
36357 }
36358 opspec := tf.OpSpec{
36359 Type: "QuantizedMul",
36360 Input: []tf.Input{
36361 x, y, min_x, max_x, min_y, max_y,
36362 },
36363 Attrs: attrs,
36364 }
36365 op := scope.AddOperation(opspec)
36366 return op.Output(0), op.Output(1), op.Output(2)
36367}
36368
36369// QuantizedAddAttr is an optional argument to QuantizedAdd.
36370type QuantizedAddAttr func(optionalAttr)

Callers 2

TestMulFunction · 0.85
TimeMulFunction · 0.85

Calls 4

aClass · 0.85
ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by 2

TestMulFunction · 0.68
TimeMulFunction · 0.68