- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for OpArgumentView (0.15 sec)
-
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) -
tensorflow/c/experimental/ops/gen/cpp/views/op_argument_view.h
#include "tensorflow/core/platform/types.h" namespace tensorflow { namespace generator { namespace cpp { class OpArgumentView { public: explicit OpArgumentView(ArgSpec arg); explicit OpArgumentView(AttrSpec attr); explicit OpArgumentView(string type, string var, string def = ""); string Declaration() const; string Initializer() const; bool HasDefaultValue() const; private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 01 21:05:56 UTC 2021 - 1.5K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc
// Initialize function arguments all_arguments_.push_back(OpArgumentView("AbstractContext*", "ctx")); for (const auto& arg : op_.Inputs()) { all_arguments_.push_back(OpArgumentView(arg)); } for (const auto& arg : op_.Outputs()) { all_arguments_.push_back(OpArgumentView(arg)); } for (const auto& attr : op.Attributes()) { all_arguments_.push_back(OpArgumentView(attr)); }
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/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/renderers/op_renderer.cc
namespace tensorflow { namespace generator { namespace cpp { string OpRenderer::Signature() const { std::vector<string> args_with_default_val; std::vector<string> args_without_default_val; for (OpArgumentView const& argument : op_.AllArguments()) { string text = argument.Declaration(); if (context_.mode == RendererContext::kHeader) { absl::StrAppend(&text, argument.Initializer()); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 05:51:40 UTC 2024 - 2.9K bytes - Viewed (0)