Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for AttrView (0.2 sec)

  1. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.cc

          return "/* ERROR */";
      }
    }
    
    string AttrView::VariableStrLen() const {
      return Call("strlen", {VariableName()});
    }
    
    string AttrView::VariableSpanData() const {
      return Call(VariableName(), "data", {}, ".");
    }
    
    string AttrView::VariableSpanLen() const {
      return Call(VariableName(), "length", {}, ".");
    }
    
    string AttrView::InputArg(bool with_default_value) const {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/cpp/views/op_argument_view.cc

          variable_name_(ArgView(arg).VariableName()) {}
    
    OpArgumentView::OpArgumentView(AttrSpec attr)
        : type_name_(AttrView(attr).VariableType()),
          variable_name_(AttrView(attr).VariableName()),
          default_value_(AttrView(attr).DefaultValue()) {}
    
    }  // namespace cpp
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/cpp/views/attr_view.h

    #include "tensorflow/c/experimental/ops/gen/model/attr_spec.h"
    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    namespace cpp {
    
    class AttrView {
     public:
      explicit AttrView(AttrSpec attr) : attr_(attr) {}
    
      string VariableName() const;
      string VariableType() const;
      string AttrNameString() const;
      string VariableStrLen() const;
      string VariableSpanData() const;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/cpp/views/op_view.h

    namespace generator {
    namespace cpp {
    
    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;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 2K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/c/experimental/ops/gen/cpp/views/op_view.cc

    }
    
    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_;
    }
    
    const std::vector<OpArgumentView>& OpView::AllArguments() const {
      return all_arguments_;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jun 03 07:02:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top