Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 242 for get_attr (0.12 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/strip_saved_module_metadata.cc

          module->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
      for (auto namedAttr : stripAttrs) {
        module->removeAttr(namedAttr.getName());
      }
    }
    
    void StripFunction(func::FuncOp func) {
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          func->getAttrs(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/strip_tf_attributes.cc

      return value == "tf" || value.starts_with("tf_");
    }
    
    void StripFunction(func::FuncOp func) {
      auto stripAttrs = llvm::to_vector<4>(llvm::make_filter_range(
          func->getAttrs(),
          [](NamedAttribute namedAttr) { return ShouldStripAttr(namedAttr); }));
      for (auto namedAttr : stripAttrs) {
        func->removeAttr(namedAttr.getName());
      }
    
      for (int i = 0; i < func.getNumArguments(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 08:06:04 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/utils/tf_to_uniform_attribute_utils.cc

      auto* defining_op = op->getOperand(operand_index).getDefiningOp();
      for (auto attr : kQuantizationAxisAttrs) {
        if (defining_op->hasAttr(attr)) {
          return defining_op->getAttr(attr);
        }
      }
      // Not found.
      return rewriter.getI64IntegerAttr(-1);
    }
    
    LogicalResult CheckIfAttrIs8Bit(const std::string& attr, Operation* op,
                                    bool& is_8_bit) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  4. pkg/registry/core/namespace/strategy.go

    	newNamespace := obj.(*api.Namespace)
    	oldNamespace := old.(*api.Namespace)
    	newNamespace.Status = oldNamespace.Status
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	namespaceObj, ok := obj.(*api.Namespace)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a namespace")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 07 08:51:17 UTC 2021
    - 8.3K bytes
    - Viewed (0)
  5. tensorflow/c/kernels.cc

        cc_type v;                                                                 \
        auto* cc_ctx = reinterpret_cast<::tensorflow::OpKernelConstruction*>(ctx); \
        absl::Status s = cc_ctx->GetAttr(attr_name, &v);                           \
        ::tensorflow::Set_TF_Status_from_Status(status, s);                        \
        if (s.ok()) {                                                              \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 22:53:47 UTC 2024
    - 36K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/utils/utils.cc

      for (auto& attr : src->getAttrs()) {
        StringRef attr_name = attr.getName().strref();
        // Skip the registered or optional attribute.
        if (registered.contains(attr_name) ||
            GetOptionalAttributes().contains(attr_name))
          continue;
    
        // Unregistered attribute.
        if (GetAllowedAttributes().contains(attr_name)) {
          dst->setAttr(attr.getName(), attr.getValue());
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. pkg/registry/apps/replicaset/strategy.go

    		"status.replicas": strconv.Itoa(int(rs.Status.Replicas)),
    	}
    	return generic.MergeFieldsSets(objectMetaFieldsSet, rsSpecificFieldsSet)
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	rs, ok := obj.(*apps.ReplicaSet)
    	if !ok {
    		return nil, nil, fmt.Errorf("given object is not a ReplicaSet")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:43 UTC 2022
    - 9.3K bytes
    - Viewed (0)
  8. pkg/registry/core/replicationcontroller/strategy.go

    		"status.replicas": strconv.Itoa(int(controller.Status.Replicas)),
    	}
    	return generic.MergeFieldsSets(objectMetaFieldsSet, controllerSpecificFieldsSet)
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	rc, ok := obj.(*api.ReplicationController)
    	if !ok {
    		return nil, nil, fmt.Errorf("given object is not a replication controller")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 16 21:06:10 UTC 2022
    - 9.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresourcedefinition/strategy.go

    // WarningsOnUpdate returns warnings for the given update.
    func (statusStrategy) WarningsOnUpdate(ctx context.Context, obj, old runtime.Object) []string {
    	return nil
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	apiserver, ok := obj.(*apiextensions.CustomResourceDefinition)
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  10. pkg/registry/core/node/strategy.go

    		"spec.unschedulable": fmt.Sprint(node.Spec.Unschedulable),
    	}
    	return generic.MergeFieldsSets(objectMetaFieldsSet, specificFieldsSet)
    }
    
    // GetAttrs returns labels and fields of a given object for filtering purposes.
    func GetAttrs(obj runtime.Object) (labels.Set, fields.Set, error) {
    	nodeObj, ok := obj.(*api.Node)
    	if !ok {
    		return nil, nil, fmt.Errorf("not a node")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 13 23:06:39 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top