Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for attrName (0.13 sec)

  1. pkg/proxy/util/nfacct/nfacct_linux.go

    // (definition: https://github.com/torvalds/linux/blob/v6.7/include/uapi/linux/netfilter/nfnetlink_acct.h#L24-L35)
    const (
    	// NFACCT_NAME
    	attrName = 1
    	// NFACCT_PKTS
    	attrPackets = 2
    	// NFACCT_BYTES
    	attrBytes = 3
    )
    
    // runner implements the Interface and depends on the handler for execution.
    type runner struct {
    	handler handler
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  2. pkg/proxy/util/nfacct/nfacct_linux_test.go

    				// validate attribute(NFACCT_NAME)
    				assert.Equal(t, 1, len(tc.handler.requests[0].data))
    				assert.Equal(t,
    					tc.handler.requests[0].data[0].Serialize(),
    					nl.NewRtAttr(attrName, nl.ZeroTerminated(tc.counterName)).Serialize(),
    				)
    			}
    		})
    	}
    }
    func TestRunner_Get(t *testing.T) {
    	testCases := []struct {
    		name         string
    		counterName  string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Apr 27 06:47:50 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  3. src/cmd/pprof/pprof.go

    				return nil
    			}
    			for _, pcs := range ranges {
    				if pcs[0] <= addr && addr < pcs[1] {
    					var ok bool
    					// TODO: AT_linkage_name, AT_MIPS_linkage_name.
    					name, ok = entry.Val(dwarf.AttrName).(string)
    					if ok {
    						break FindName
    					}
    				}
    			}
    		}
    	}
    
    	// TODO: Report inlined functions.
    
    	frames := []driver.Frame{
    		{
    			Func: name,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. src/cmd/cgo/gcc.go

    	// Scan DWARF info for top-level TagVariable entries with AttrName __cgo__i.
    	types := make([]dwarf.Type, len(names))
    	r := d.Reader()
    	for {
    		e, err := r.Next()
    		if err != nil {
    			fatalf("reading DWARF entry: %s", err)
    		}
    		if e == nil {
    			break
    		}
    		switch e.Tag {
    		case dwarf.TagVariable:
    			name, _ := e.Val(dwarf.AttrName).(string)
    			// As of https://reviews.llvm.org/D123534, clang
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 97K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.td

    // with the key `attr_name` as the type provided by `attr_type`.
    class GetCompositeAttributeAs<string attr_name, string attr_type>:
      NativeCodeCall<"$0.get(\"" # attr_name # "\").dyn_cast<" # attr_type # ">()">;
    
    // Receives a composite DictionaryAttr and returns the value of the Attribute
    // with the key `attr_name` as a DenseIntElementsAttr.
    class GetAsVectorAttr<string attr_name>:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 19:05:30 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  6. tensorflow/c/eager/c_api.cc

      }
    }
    
    void TFE_OpSetAttrInt(TFE_Op* op, const char* attr_name, int64_t value) {
      auto s = tensorflow::unwrap(op)->SetAttrInt(attr_name, value);
      if (!s.ok()) {
        LOG(WARNING) << "Unable to set attribute: " << attr_name;
      }
    }
    
    void TFE_OpSetAttrFloat(TFE_Op* op, const char* attr_name, float value) {
      auto s = tensorflow::unwrap(op)->SetAttrFloat(attr_name, value);
      if (!s.ok()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 08:11:23 UTC 2024
    - 44K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc

      Status SetAttrString(const char* attr_name, const char* data,
                           size_t length) override;
      Status SetAttrInt(const char* attr_name, int64_t value) override;
      Status SetAttrFloat(const char* attr_name, float value) override;
      Status SetAttrBool(const char* attr_name, bool value) override;
      Status SetAttrType(const char* attr_name,
                         tensorflow::DataType dtype) override;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h

    namespace mlir {
    namespace odml {
    
    // Ensure an attribute named attr_name exists and it is of type AttrType.
    // If so, sets the `out_attr` pointer to point to the casted attribute.
    template <typename AttrType>
    bool EnsureAttribute(const DictionaryAttr& composite_attributes,
                         const std::string& attr_name, AttrType* out_attr) {
      Attribute attr = composite_attributes.get(attr_name);
      if (!mlir::isa_and_nonnull<AttrType>(attr)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  9. tensorflow/c/kernels.cc

      case DataTypeToEnum<type>::value: {                            \
        kernel_builder->cc_builder->TypeConstraint<type>(attr_name); \
        break;                                                       \
      }
    
    void AddTypeConstraint(TF_KernelBuilder* kernel_builder, const char* attr_name,
                           const DataType dtype, TF_Status* status) {
      // This needs to be under tensorflow:: namespace so that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  10. tensorflow/c/c_api.cc

        }
        desc->node_builder.Attr(attr_name, v);
      }
    }
    
    void TF_SetAttrInt(TF_OperationDescription* desc, const char* attr_name,
                       int64_t value) {
      desc->node_builder.Attr(attr_name, static_cast<int64_t>(value));
    }
    
    void TF_SetAttrIntList(TF_OperationDescription* desc, const char* attr_name,
                           const int64_t* values, int num_values) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 102.3K bytes
    - Viewed (0)
Back to top