Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 84 for ret_attrs (0.25 sec)

  1. pkg/registry/core/service/storage/storage.go

    		TableConvertor: printerstorage.TableConvertor{TableGenerator: printers.NewTableGenerator().With(printersinternal.AddHandlers)},
    	}
    	options := &generic.StoreOptions{
    		RESTOptions: optsGetter,
    		AttrFunc:    svcreg.GetAttrs,
    	}
    	if err := store.CompleteWithOptions(options); err != nil {
    		return nil, nil, nil, err
    	}
    
    	statusStore := *store
    	statusStore.UpdateStrategy = svcreg.StatusStrategy
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 13:09:33 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/convert_control_to_data_outputs.cc

      }
    
      // Replace old while op with new while op.
      auto new_while_op = builder.create<TF::WhileOp>(
          while_op.getLoc(), new_result_types, new_operands, while_op->getAttrs());
      auto new_while_wrapper =
          CreateIsland(new_while_op, while_wrapper.getControlInputs(), builder);
      for (auto result : while_wrapper.getOutputs()) {
        result.replaceAllUsesWith(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    				}
    				originalRevision = out.(metav1.Object).GetResourceVersion()
    			}
    
    			// prepare result and pred
    			pred := storage.SelectionPredicate{
    				Label: tc.selector,
    				Field: fields.Everything(),
    				GetAttrs: func(obj runtime.Object) (labels.Set, fields.Set, error) {
    					pod, ok := obj.(*examplev1.Pod)
    					if !ok {
    						return nil, nil, fmt.Errorf("not a pod")
    					}
    					return pod.ObjectMeta.Labels, fields.Set{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	}
    	return storage.SelectionPredicate{
    		Label:    labels.Everything().Add(*l),
    		Field:    fields.Everything(),
    		GetAttrs: getPodAttrs,
    	}
    }
    
    func matchEverything() storage.SelectionPredicate {
    	return storage.SelectionPredicate{
    		Label: labels.Everything(),
    		Field: fields.Everything(),
    		GetAttrs: func(obj runtime.Object) (label labels.Set, field fields.Set, err error) {
    			return nil, nil, nil
    		},
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

          OperationState new_state(op_with_region->getLoc(),
                                   op_with_region->getName().getStringRef(), inputs,
                                   output_types, op_with_region->getAttrs());
          for (int i = 0; i < op_with_region->getNumRegions(); ++i) {
            new_state.addRegion();
          }
          Operation* quantized_op = rewriter.create(new_state);
          for (const auto& [index, region] :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

                builder.create<TF::TPUAnnotateTensorsWithDynamicShapeOp>(
                    op->getLoc(), result.getType(), new_value,
                    result.getDefiningOp()->getAttrs());
            for (auto [operation, index] : out_of_region_use) {
              if (!backward_pass_ops.contains(operation)) {
                operation->emitOpError()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  7. pkg/registry/batch/job/strategy_test.go

    	}
    	for name, tc := range cases {
    		t.Run(name, func(t *testing.T) {
    			if tc.job == nil {
    				_, _, err := GetAttrs(tc.nonJobObject)
    				if diff := cmp.Diff(tc.wantErr, err.Error()); diff != "" {
    					t.Errorf("Unexpected errors (-want,+got):\n%s", diff)
    				}
    			} else {
    				gotLabels, _, err := GetAttrs(tc.job)
    				if err != nil {
    					t.Errorf("Error %s supposed to be nil", err.Error())
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 101.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

            output_uniform_quantized_tensor_type};
        auto new_conv_op_with_output_type =
            rewriter.create<stablehlo::ConvolutionOp>(
                op.getLoc(), new_conv_output_types, op.getOperands(),
                op->getAttrs());
    
        rewriter.replaceAllUsesWith(op.getResult(),
                                    new_conv_op_with_output_type.getResult());
    
        auto new_output_dequant_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_outside_compilation.cc

      // type
      auto new_device_cluster = builder.create<mlir::tf_device::ClusterOp>(
          device_cluster.getLoc(), device_result_types,
          /*operands=*/llvm::ArrayRef<Value>{}, device_cluster->getAttrs());
    
      new_device_cluster.getBody().push_back(new Block);
      builder.setInsertionPointToEnd(&new_device_cluster.GetBody());
    
      // Create return op for device computation region in the paralle_execute op
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 21:25:12 UTC 2024
    - 68.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

        auto tf_fused_batch_norm_op_v3 = CreateTfOp<TF::FusedBatchNormV3Op>(
            rewriter, tf_fused_batch_norm_op, new_result_types,
            tf_fused_batch_norm_op.getOperands(),
            tf_fused_batch_norm_op->getAttrs());
    
        rewriter.replaceOp(tf_fused_batch_norm_op,
                           tf_fused_batch_norm_op_v3->getResults().drop_back());
        return success();
      }
    };
    }  // namespace.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
Back to top