Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for ApiDef (0.15 sec)

  1. tensorflow/cc/framework/cc_op_gen_util.h

      //   code, with possibly overridden names and defaults.
      OpInfo(const OpDef& graph_op_def, const ApiDef& api_def,
             const std::vector<string>& aliases);
      OpInfo(const OpDef& graph_op_def, const ApiDef& api_def);
      string GetOpAttrStruct() const;
      string GetConstructorDecl(StringPiece op_name_prefix,
                                bool include_attr) const;
    
      string op_name;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  2. tensorflow/cc/framework/cc_op_gen_test.cc

      ApiDefMap api_def_map(op_defs);
    
      string h_file_text, internal_h_file_text;
      // Without ApiDef
      GenerateCcOpFiles(env, op_defs, api_def_map, &h_file_text,
                        &internal_h_file_text);
      ExpectHasSubstr(h_file_text, "class Foo");
      ExpectDoesNotHaveSubstr(internal_h_file_text, "class Foo");
    
      // With ApiDef
      TF_ASSERT_OK(api_def_map.LoadApiDef(api_def));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 29 20:04:30 UTC 2022
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/ops/gen/model/op_spec.h

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    namespace generator {
    
    // An Op.
    //
    // Essentially, this represents an OpDef and any necessary context (e.g ApiDef).
    class OpSpec {
     public:
      static OpSpec Create(const OpDef& op_def, const ApiDef& api_def);
    
      const string& name() const { return name_; }
      const string& summary() const { return summary_; }
      const string& description() const { return description_; }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 15 18:23:40 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/gen/model/op_spec.cc

    #include <string>
    
    #include "absl/container/flat_hash_set.h"
    
    namespace tensorflow {
    namespace generator {
    
    OpSpec OpSpec::Create(const OpDef& op_def, const ApiDef& api_def) {
      return OpSpec(op_def, api_def);
    }
    
    OpSpec::OpSpec(const OpDef& op_def, const ApiDef& api_def)
        : name_(op_def.name()),
          summary_(api_def.summary()),
          description_(api_def.description()) {
      absl::flat_hash_set<string> inferred_attrs;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 01 21:05:56 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/cc/framework/cc_op_gen_util.cc

        }
      }
    
      // Process attrs
      string required_attrs_comment;
      string optional_attrs_comment;
      for (int i = 0; i < graph_op_def.attr_size(); ++i) {
        // ApiDef attributes must be in the same order as in OpDef since
        // we initialize ApiDef based on OpDef.
        const auto& attr(graph_op_def.attr(i));
        const auto& api_def_attr(api_def.attr(i));
        CHECK_EQ(attr.name(), api_def_attr.name());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:57:05 UTC 2024
    - 25K bytes
    - Viewed (0)
  6. tensorflow/cc/framework/fuzzing/op_fuzzing.bzl

            name,
            op_def_src,
            api_def_srcs = [],
            kernel_deps = []):
        """
        Generates fuzzers for several groups of ops.
    
        For each one we need the corresponding OpDef, ApiDef and KernelDef,
        since they all can contain constraints for the inputs.
    
        Args:
            name: the name of the fuzz artifact
            op_def_src: op definitions
            api_def_srcs: api definitions
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Nov 07 19:14:57 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  7. tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen_main.cc

      std::unique_ptr<WritableFile> fuzz_file = nullptr;
      for (const OpDef& op_def : ops.op()) {
        if (std::find(op_names.begin(), op_names.end(), op_def.name()) ==
            op_names.end())
          continue;
    
        const ApiDef* api_def = api_def_map->GetApiDef(op_def.name());
        if (api_def == nullptr) {
          continue;
        }
    
        OpInfo op_info(op_def, *api_def, std::vector<string>());
        status.Update(env->NewWritableFile(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 10:53:49 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  8. tensorflow/c/experimental/ops/gen/common/controller.cc

      for (const auto& op_name : path_config_.op_names) {
        const OpDef* op_def = nullptr;
        TF_CHECK_OK(OpRegistry::Global()->LookUpOpDef(op_name, &op_def));
        CHECK(op_def != nullptr);  // Crash OK
    
        const ApiDef* api_def = api_def_map_->GetApiDef(op_name);
        CHECK(api_def != nullptr);  // Crash OK
    
        operators_.push_back(OpSpec::Create(*op_def, *api_def));
      }
    }
    
    }  // namespace generator
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  9. tensorflow/cc/framework/fuzzing/cc_op_fuzz_gen.cc

      }
    
      // TODO(unda, b/249347507): should we hide fuzzers for hidden ops?
      if (op_info.api_def.visibility() == ApiDef::HIDDEN) {
        std::cout << "NOT fuzzing: " << op_info.graph_op_def.name()
                  << " is hidden.\n";
        return false;
      }
    
      if (op_info.api_def.visibility() == ApiDef::SKIP) {
        std::cout << "NOT fuzzing: " << op_info.graph_op_def.name()
                  << " is skipped.\n";
        return false;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 27 16:26:51 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. tensorflow/cc/framework/cc_op_gen.cc

        std::vector<string> aliases;
        if (api_def->visibility() == ApiDef::SKIP) continue;
        // First endpoint is canonical, the rest are aliases.
        for (int endpoint_i = 1; endpoint_i < api_def->endpoint_size();
             ++endpoint_i) {
          aliases.push_back(api_def->endpoint(endpoint_i).name());
        }
        if (api_def->visibility() == ApiDef::HIDDEN) {
          // Write hidden ops to _internal.h and _internal.cc.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 27 17:22:47 UTC 2023
    - 17K bytes
    - Viewed (0)
Back to top