Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for attr_name (0.38 sec)

  1. tensorflow/c/c_api.h

      int64_t total_size;
    } TF_AttrMetadata;
    
    // Returns metadata about the value of the attribute `attr_name` of `oper`.
    TF_CAPI_EXPORT extern TF_AttrMetadata TF_OperationGetAttrMetadata(
        TF_Operation* oper, const char* attr_name, TF_Status* status);
    
    // Fills in `value` with the value of the attribute `attr_name`.  `value` must
    // point to an array of length at least `max_length` (ideally set to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          op_name: Name of the op to match.
          attr_name: Name of the attribute of the op to match.
          attr_val: Value of the attr_name to check.
          node_name: Name of the node to match. Accepts regex2 format.
    
        Returns:
          True if there exists a node whose name matches `op_name` and 'attr_val' if
          'attr_name' is given.
        """
    
        def match_node_name(name):
          if not node_name:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  3. tensorflow/c/kernels_test.cc

    // Helper macros for the TF_OpKernelConstruction_GetAttr* tests.
    #define EXPECT_TF_SIZE(attr_name, expected_list_size, expected_total_size) \
      do {                                                                     \
        int32_t list_size, total_size;                                         \
        TF_OpKernelConstruction_GetAttrSize(ctx, attr_name, &list_size,        \
                                            &total_size, status);              \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_pipelining.cc

          std::vector<std::string> attr_names = {
              TF::kReplicationInfoAttr.str(), "_xla_compile_device_type",
              kEmbeddingPipelining, "_xla_outside_compilation", "device"};
          for (const auto& attr_name : attr_names) {
            if (!global_iter_id_op->hasAttr(attr_name)) continue;
            offset->setAttr(attr_name, global_iter_id_op->getAttr(attr_name));
            new_global_iter_id->setAttr(attr_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_function_test.cc

        func_ = TF_FunctionImportFunctionDef(buf.data(), buf.size(), s_);
        ASSERT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void GetAttr(const char* attr_name, AttrValue* out_attr) {
        TF_Buffer* attr_buf = TF_NewBuffer();
        TF_FunctionGetAttrValueProto(func_, attr_name, attr_buf, s_);
        ASSERT_TRUE(out_attr->ParseFromArray(attr_buf->data, attr_buf->length));
        TF_DeleteBuffer(attr_buf);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/mark_for_compilation_pass.cc

      return std::nullopt;
    }
    
    // Returns true iff the attribute `attr_name` is attached to either the node or
    // to it's callee.
    static bool GetNodeOrFuncAttr(Node* node, FunctionLibraryDefinition* flib_def,
                                  const char* attr_name) {
      bool out = false;
      bool attr_value;
      if (TryGetNodeAttr(node->attrs(), attr_name, &attr_value)) {
        out |= attr_value;
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  7. tensorflow/c/c_api_test.cc

    // That will require setting up the tensorflow build with gmock.
    #define EXPECT_TF_META(attr_name, expected_list_size, expected_type, \
                           expected_total_size)                          \
      do {                                                               \
        auto m = TF_OperationGetAttrMetadata(oper, attr_name, s_);       \
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);              \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

    // function, this map (map1) is in {attr_name_1: attr_identifier} format; and in
    // the float function, this map (map2) is in {attr_identifier: attr_name_2}
    // format. Where, the attribute identifiers should match between two maps,
    // attr_name_1 is the name of the of the attribute needs to be set in the
    // quantized function, attr_name_2 is the name of the attribute corresponding to
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  9. src/debug/elf/file_test.go

    					Children: true,
    					Field: []dwarf.Field{
    						{Attr: dwarf.AttrProducer, Val: "GNU C 4.4.1", Class: dwarf.ClassString},
    						{Attr: dwarf.AttrLanguage, Val: int64(1), Class: dwarf.ClassConstant},
    						{Attr: dwarf.AttrName, Val: "go-relocation-test.c", Class: dwarf.ClassString},
    						{Attr: dwarf.AttrCompDir, Val: "/tmp", Class: dwarf.ClassString},
    						{Attr: dwarf.AttrLowpc, Val: uint64(0x0), Class: dwarf.ClassAddress},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 60.1K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        if arg_def.type == types_pb2.DT_FLOAT:
          attr_names.append('f32_')
        elif arg_def.type == types_pb2.DT_INT32:
          attr_names.append('i32_')
        elif arg_def.type == types_pb2.DT_INT64:
          attr_names.append('i64_')
        elif arg_def.type == types_pb2.DT_BOOL:
          attr_names.append('i1_')
    
        if not attr_names:
          return str(attr_type)
        else:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top