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

Method has_input

tensorflow/core/framework/op_kernel.h:1663–1667  ·  view source on GitHub ↗

no input if tensor == nullptr.

Source from the content-addressed store, hash-verified

1661
1662// no input if tensor == nullptr.
1663inline bool OpKernelContext::has_input(int index) const {
1664 DCHECK_GE(index, 0);
1665 DCHECK_LT(index, num_inputs());
1666 return (*params_->inputs)[index].tensor != nullptr;
1667}
1668
1669inline Tensor* OpKernelContext::input_ref(int index) {
1670 DCHECK_GE(index, 0);

Callers 2

ComputeMethod · 0.80
ComputeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected