Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for createInputs (0.13 sec)

  1. tensorflow/c/experimental/ops/gen/model/arg_spec.cc

          description_(arg_def.description()),
          arg_type_(arg_type),
          position_(position) {}
    
    ArgSpec ArgSpec::CreateInput(const OpDef::ArgDef& arg_def, int position) {
      if (arg_def.is_ref()) {
        return ArgSpec(arg_def, ArgType::CreateInputRef(arg_def), position);
      } else {
        return ArgSpec(arg_def, ArgType::CreateInput(arg_def), position);
      }
    }
    
    ArgSpec ArgSpec::CreateOutput(const OpDef::ArgDef& arg_def, int position) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/ops/gen/model/arg_type.h

    //
    // This represents the type information with OpDef::ArgDef and any type-related
    // context.
    class ArgType {
     public:
      ArgType() = default;
      ArgType(const ArgType& other) = default;
      static ArgType CreateInput(const OpDef::ArgDef& arg_def);
      static ArgType CreateInputRef(const OpDef::ArgDef& arg_def);
      static ArgType CreateOutput(const OpDef::ArgDef& arg_def);
    
      const tensorflow::DataType data_type() const { return data_type_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/model/arg_type.cc

    ==============================================================================*/
    #include "tensorflow/c/experimental/ops/gen/model/arg_type.h"
    
    namespace tensorflow {
    namespace generator {
    
    ArgType ArgType::CreateInput(const OpDef::ArgDef& arg_def) {
      return ArgType(arg_def, kInput);
    }
    
    ArgType ArgType::CreateInputRef(const OpDef::ArgDef& arg_def) {
      return ArgType(arg_def, kInputRef);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/model/arg_spec.h

    //
    // Essentially, this represents an OpDef::ArgDef and its context within the Op.
    class ArgSpec {
     public:
      ArgSpec() = default;
      ArgSpec(const ArgSpec& other) = default;
      static ArgSpec CreateInput(const OpDef::ArgDef& arg_def, int position);
      static ArgSpec CreateOutput(const OpDef::ArgDef& arg_def, int position);
    
      const string& name() const { return name_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/ops/gen/model/op_spec.cc

          description_(api_def.description()) {
      absl::flat_hash_set<string> inferred_attrs;
      // Parse the arguments
      for (const OpDef::ArgDef& arg_def : op_def.input_arg()) {
        ArgSpec arg = ArgSpec::CreateInput(arg_def, input_args_.size());
        input_args_.push_back(arg);
        if (!arg_def.type_attr().empty()) {
          inferred_attrs.insert(arg_def.type_attr());
          if (!arg_def.number_attr().empty()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 01 21:05:56 UTC 2021
    - 2.1K bytes
    - Viewed (0)
Back to top