Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ArgView (0.4 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/internal/trace/traceviewer/static/trace_viewer_full.html

    if(n>0){const subRows=[];for(const argName in args){n+=1;}
    if(n>0){const subRows=[];for(const argName in args){const argView=document.createElement('tr-ui-a-generic-object-view');argView.object=args[argName];subRows.push({name:argName,value:argView});}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 20:45:06 UTC 2023
    - 2.5M bytes
    - Viewed (0)
Back to top