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

Function Fingerprint

tensorflow/go/op/wrappers.go:82–94  ·  view source on GitHub ↗

Generates fingerprint values. Generates fingerprint values of `data`. Fingerprint op considers the first dimension of `data` as the batch dimension, and `output[i]` contains the fingerprint value generated from contents in `data[i, ...]` for all `i`. Fingerprint op writes fingerprint values as by

(scope *Scope, data tf.Output, method tf.Output)

Source from the content-addressed store, hash-verified

80// `data`'s first dimension, and the second dimension size depends on the
81// fingerprint algorithm.
82func Fingerprint(scope *Scope, data tf.Output, method tf.Output) (fingerprint tf.Output) {
83 if scope.Err() != nil {
84 return
85 }
86 opspec := tf.OpSpec{
87 Type: "Fingerprint",
88 Input: []tf.Input{
89 data, method,
90 },
91 }
92 op := scope.AddOperation(opspec)
93 return op.Output(0)
94}
95
96// FakeQuantWithMinMaxVarsPerChannelGradientAttr is an optional argument to FakeQuantWithMinMaxVarsPerChannelGradient.
97type FakeQuantWithMinMaxVarsPerChannelGradientAttr func(optionalAttr)

Callers 1

Calls 3

ErrMethod · 0.45
AddOperationMethod · 0.45
OutputMethod · 0.45

Tested by

no test coverage detected