- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for ArgView (0.12 sec)
-
tensorflow/c/experimental/ops/gen/cpp/views/op_view.h
class OpView { public: explicit OpView(OpSpec op); const std::vector<ArgView> &Inputs() const; const std::vector<ArgView> &Outputs() const; const std::vector<AttrView> &Attributes() const; const std::vector<OpArgumentView> &AllArguments() const; int NumInputs() const; int NumOutputs() const; ArgView OnlyInput() const; ArgView OnlyOutput() const; string FunctionName() const; string VariableName() const;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 15 18:23:40 UTC 2021 - 2K bytes - Viewed (0) -
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/arg_view.h
#include "tensorflow/c/experimental/ops/gen/model/arg_spec.h" #include "tensorflow/core/platform/types.h" namespace tensorflow { namespace generator { namespace cpp { class ArgView { public: explicit ArgView(ArgSpec arg); string VariableName() const; string SetterMethod() const; std::vector<string> SetterArgs() const; int Position() const; bool IsList() const; private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 15 18:23:40 UTC 2021 - 1.4K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/README.md
language-specific representation of the model classes. For example, an `ArgView` is initialized from an `ArgSpec` (which was created initially from an `ArgDef` proto message). Where they may have some similar methods between the model and view, the view methods are language-specific. For instance, the C++ generator's `ArgView::VariableName()` method is an
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Jun 21 18:51:25 UTC 2021 - 5.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)