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

Method compute_mask

tensorflow/python/keras/engine/sequential.py:283–288  ·  view source on GitHub ↗
(self, inputs, mask)

Source from the content-addressed store, hash-verified

281 return shape
282
283 def compute_mask(self, inputs, mask):
284 # TODO(omalleyt): b/123540974 This function is not really safe to call
285 # by itself because it will duplicate any updates and losses in graph
286 # mode by `call`ing the Layers again.
287 outputs = self.call(inputs, mask=mask)
288 return outputs._keras_mask
289
290 def predict_proba(self, x, batch_size=32, verbose=0):
291 """Generates class probability predictions for the input samples.

Callers

nothing calls this directly

Calls 1

callMethod · 0.95

Tested by

no test coverage detected