- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ArgView (0.1 sec)
-
tensorflow/c/experimental/ops/gen/cpp/views/arg_view.cc
namespace generator { namespace cpp { ArgView::ArgView(ArgSpec arg) : arg_(arg) {} string ArgView::VariableName() const { return arg_.name(); } string ArgView::SetterMethod() const { if (IsList()) { return "AddInputList"; } else { return "AddInput"; } } std::vector<string> ArgView::SetterArgs() const { return {VariableName()}; } bool ArgView::IsList() const { return arg_.arg_type().is_list(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 1.4K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc
all_arguments_.push_back( OpArgumentView("const char*", "raw_device_name", "nullptr")); } const std::vector<ArgView>& OpView::Inputs() const { return input_args_; } const std::vector<ArgView>& OpView::Outputs() const { return output_args_; } const std::vector<AttrView>& OpView::Attributes() const { return argument_attrs_; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/renderers/op_implementation_renderer.cc
// Set each input for (const ArgView& ar : op_.Inputs()) { TFStatement(Call(op_.VariableName(), ar.SetterMethod(), ar.SetterArgs())); } // Set each attribute for (const AttrView& ar : op_.Attributes()) { TFStatement(Call(op_.VariableName(), ar.SetterMethod(), ar.SetterArgs())); } } void OpImplementationRenderer::RenderExecutionListOp() { ArgView output_arg = op_.OnlyOutput();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 3.7K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/views/op_argument_view.cc
: type_name_(type), variable_name_(var), default_value_(def) {} OpArgumentView::OpArgumentView(ArgSpec arg) : type_name_(ArgTypeView(arg.arg_type()).TypeName()), variable_name_(ArgView(arg).VariableName()) {} OpArgumentView::OpArgumentView(AttrSpec attr) : type_name_(AttrView(attr).VariableType()), variable_name_(AttrView(attr).VariableName()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 03 07:02:00 UTC 2024 - 2.1K bytes - Viewed (0)