MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / has_input

Method has_input

oneflow/core/framework/op_expr.cpp:369–373  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

367 return arg_tuple.indexed_bns().at(tuple_index);
368 }
369 bool has_input(const std::string& arg_name, int32_t index) const override {
370 const auto& arg_tuple = *user_op_expr_->input_arg_tuple();
371 int32_t tuple_index = arg_tuple.TensorTupleIndex4ArgNameAndIndex(arg_name, index);
372 return tuple_index >= 0;
373 }
374 bool has_output(const std::string& arg_name, int32_t index) const override {
375 const auto& arg_tuple = *user_op_expr_->output_arg_tuple();
376 int32_t tuple_index = arg_tuple.TensorTupleIndex4ArgNameAndIndex(arg_name, index);

Callers

nothing calls this directly

Calls 2

input_arg_tupleMethod · 0.80

Tested by

no test coverage detected