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

Function LowerBound

tensorflow/go/op/wrappers.go:307–324  ·  view source on GitHub ↗

Applies lower_bound(sorted_search_values, values) along each row. Each set of rows with the same index in (sorted_inputs, values) is treated independently. The resulting row is the equivalent of calling `np.searchsorted(sorted_inputs, values, side='left')`. The result is not a global index to the

(scope *Scope, sorted_inputs tf.Output, values tf.Output, optional ...LowerBoundAttr)

Source from the content-addressed store, hash-verified

305// into the last dimension where values can be inserted without changing the
306// ordered property.
307func LowerBound(scope *Scope, sorted_inputs tf.Output, values tf.Output, optional ...LowerBoundAttr) (output tf.Output) {
308 if scope.Err() != nil {
309 return
310 }
311 attrs := map[string]interface{}{}
312 for _, a := range optional {
313 a(attrs)
314 }
315 opspec := tf.OpSpec{
316 Type: "LowerBound",
317 Input: []tf.Input{
318 sorted_inputs, values,
319 },
320 Attrs: attrs,
321 }
322 op := scope.AddOperation(opspec)
323 return op.Output(0)
324}
325
326// Concatenates quantized tensors along one dimension.
327//

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected