Searched refs:optional_input (Results 1 – 1 of 1) sorted by relevance
83 const Tensor* optional_input; in Compute() local84 OP_REQUIRES_OK(ctx, ctx->input("optional", &optional_input)); in Compute()85 OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(optional_input->shape()), in Compute()90 optional_input->scalar<Variant>()().get<OptionalVariant>(); in Compute()101 const Tensor* optional_input; in Compute() local102 OP_REQUIRES_OK(ctx, ctx->input("optional", &optional_input)); in Compute()103 OP_REQUIRES(ctx, TensorShapeUtils::IsScalar(optional_input->shape()), in Compute()108 optional_input->scalar<Variant>()().get<OptionalVariant>(); in Compute()