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

Function Any

tensorflow/compiler/xla/client/lib/arithmetic.cc:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100XlaOp Any(XlaOp predicates) {
101 XlaBuilder* builder = predicates.builder();
102 return builder->ReportErrorOrReturn([&]() -> StatusOr<XlaOp> {
103 auto f = ConstantR0<bool>(builder, false);
104 XlaComputation logical_or = CreateScalarOrComputation(PRED, builder);
105 TF_ASSIGN_OR_RETURN(const Shape& predicates_shape,
106 builder->GetShape(predicates));
107 std::vector<int64> all_dimensions(predicates_shape.rank());
108 std::iota(all_dimensions.begin(), all_dimensions.end(), 0);
109 return Reduce(predicates, f, logical_or, all_dimensions);
110 });
111}
112
113namespace {
114

Callers 8

IgammaSeriesFunction · 0.70
IgammacContinuedFractionFunction · 0.70
initMethod · 0.50
_make_asset_file_def_anyFunction · 0.50
CholeskyUnblockedFunction · 0.50
TEST_FFunction · 0.50
XLA_TEST_FFunction · 0.50
ScannerClass · 0.50

Calls 7

ReportErrorOrReturnMethod · 0.80
ReduceFunction · 0.50
builderMethod · 0.45
rankMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by 3

_make_asset_file_def_anyFunction · 0.40
TEST_FFunction · 0.40
XLA_TEST_FFunction · 0.40