Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 242 for get_attr (0.18 sec)

  1. fastapi/encoders.py

            exclude = set(exclude)
        if isinstance(obj, BaseModel):
            # TODO: remove when deprecating Pydantic v1
            encoders: Dict[Any, Any] = {}
            if not PYDANTIC_V2:
                encoders = getattr(obj.__config__, "json_encoders", {})  # type: ignore[attr-defined]
                if custom_encoder:
                    encoders.update(custom_encoder)
            obj_dict = _model_dump(
                obj,
                mode="json",
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/etcd.go

    		TableConvertor: rest.NewDefaultTableConvertor(apiextensions.Resource("customresourcedefinitions")),
    	}
    	options := &generic.StoreOptions{RESTOptions: optsGetter, AttrFunc: GetAttrs}
    	if err := store.CompleteWithOptions(options); err != nil {
    		return nil, err
    	}
    	return &REST{store}, nil
    }
    
    // Implement ShortNamesProvider
    var _ rest.ShortNamesProvider = &REST{}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 18 09:21:19 UTC 2022
    - 8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

          }
        }
    
        // Build the new float-versioned op.
        OperationState state(op->getLoc(), op->getName());
        state.operands = dequantized_inputs;
        state.types = result_types;
        state.attributes = op->getAttrs();
        state.successors = op->getSuccessors();
        builder->setInsertionPoint(op);
        Operation* new_op = builder->create(state);
    
        // Insert quantize ops for every outputs and rewrite.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. operator/pkg/patch/patch.go

    just an example which normally is greater than the most of the lists used.
    
    2. Add new key:value to container name: n1
    
    	path: a.b.[name:n1]
    	value:
    	  new_attr: v3
    
    *NOTES*
    - Due to loss of string quoting during unmarshaling, keys and values should not be string quoted, even if they appear
    that way in the object being patched.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Aug 10 15:35:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        for (const auto &entry : llvm::enumerate(indices.getValue())) {
          auto int_attr = entry.value().cast<IntegerAttr>();
          if (int_attr.getInt() < min)
            return op.emitOpError()
                   << "requires '" << name << "' to contain values of at least "
                   << min << ", but got " << int_attr.getInt() << " at index "
                   << entry.index();
        }
    
        return success();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc

        if (cloned == func) continue;
        // Patch up the op attribute to point to the new function.
        for (NamedAttribute attr : op->getAttrs()) {
          auto symref = mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue());
          if (!symref) continue;
          if (symref.getValue() != func.getName()) continue;
          op->setAttr(attr.getName(),
                      FlatSymbolRefAttr::get(op->getContext(), cloned.getName()));
          break;
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/convert_func_to_bfloat16.cc

        // OperationState so we can add regions to the new op.
        OperationState state(op->getLoc(), op->getName().getStringRef(), operands,
                             new_results, op->getAttrs(), op->getSuccessors());
        for (Region& region : op->getRegions()) {
          Region& new_region = *state.addRegion();
          rewriter.inlineRegionBefore(region, new_region, new_region.begin());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/executor_tpuv1_outline_tpu_island.cc

      // outlined module.
      for (func::FuncOp func : outlined_module.getOps<func::FuncOp>()) {
        func.walk([&](Operation *op) {
          for (NamedAttribute attr : op->getAttrs()) {
            if (auto symbol_ref =
                    mlir::dyn_cast<FlatSymbolRefAttr>(attr.getValue())) {
              MoveFuncOp(symbol_ref, symbol_table, outlined_symbol_table);
              continue;
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/selection_predicate_test.go

    			panic(err)
    		}
    		parsedField, err := fields.ParseSelector(item.fieldSelector)
    		if err != nil {
    			panic(err)
    		}
    		sp := &SelectionPredicate{
    			Label: parsedLabel,
    			Field: parsedField,
    			GetAttrs: func(runtime.Object) (label labels.Set, field fields.Set, err error) {
    				return item.labels, item.fields, item.err
    			},
    		}
    		got, err := sp.Matches(&Ignored{})
    		if e, a := item.err, err; e != a {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 30 10:39:09 UTC 2023
    - 8.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/attribute_utils.h

    // Copies attributes that satisfy the given predicate from `from` to `to`.
    template <typename Predicate>
    void CopyAttributes(Operation *from, Operation *to, Predicate P) {
      for (const NamedAttribute &attr : from->getAttrs())
        if (P(attr)) to->setAttr(attr.getName(), attr.getValue());
    }
    
    // Copies attributes whose name begins with an _ from `from` to `to`.
    inline void CopyUnderscoredAttributes(Operation *from, Operation *to) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top