Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for get_attr (0.17 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    			// doesn't automatically preclude some scenarios from happening.
    			t.Parallel()
    
    			if ignoreWatchCacheTests && tt.ignoreForWatchCache {
    				t.Skip()
    			}
    
    			if tt.pred.GetAttrs == nil {
    				tt.pred.GetAttrs = getAttrs
    			}
    
    			out := &example.PodList{}
    			storageOpts := storage.ListOptions{
    				ResourceVersion:      tt.rv,
    				ResourceVersionMatch: tt.rvMatch,
    				Predicate:            tt.pred,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

               llvm::all_of(op->getResultTypes(), is_not_variant);
      };
    
      auto is_set_item_legal = [](Operation *op) {
        return op->hasAttr("resize_if_index_out_of_bounds") &&
               op->getAttr("resize_if_index_out_of_bounds")
                   .cast<mlir::BoolAttr>()
                   .getValue();
      };
    
      ConversionTarget target(*context);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  3. RELEASE.md

        (explicit) kernel methods in TensorFlow.
    
    ## Bug Fixes and Other Changes
    
    *   In python, `Operation.get_attr` on type attributes returns the Python DType
        version of the type to match expected get_attr documentation rather than the
        protobuf enum.
    *   tensorflow/contrib/rnn undergoes RNN cell variable renaming for consistency
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        ElementsAttr input, int column) {
      auto int_attr = mlir::cast<DenseIntElementsAttr>(input);
      auto shaped_type = int_attr.getType();
      auto shape = shaped_type.getShape();
    
      if (shape.size() != 2) return DenseIntElementsAttr();
    
      llvm::SmallVector<int64_t, 4> values;
      values.reserve(shaped_type.getNumElements() / shape[1]);
    
      for (const auto &it : llvm::enumerate(int_attr.getValues<APInt>())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  6. 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)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        // folding), but we can still derive the shape of a constant tensor for
        // its attribute type.
        auto tensor_attr = mlir::cast<mlir::TypedAttr>(inst->getAttr("value"));
        llvm::ArrayRef<int64_t> shape_ref =
            mlir::cast<TensorType>(tensor_attr.getType()).getShape();
        if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    	tests := []struct {
    		name string
    		req  *Request
    		want bool
    	}{
    		{
    			name: "GET",
    			req:  &Request{Method: "GET"},
    			want: true,
    		},
    		{
    			name: "GET_http.NoBody",
    			req:  &Request{Method: "GET", Body: NoBody},
    			want: true,
    		},
    		{
    			name: "GET_body",
    			req:  &Request{Method: "GET", Body: someBody},
    			want: false,
    		},
    		{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        MutableOperandRange getArgOperandsMutable() {
          return getArgsMutable();
        }
    
        // Returns the callee of this operation.
        CallInterfaceCallable getCallableForCallee() { return getFAttr(); }
        // Sets the callee from the callable.
        void setCalleeFromCallable(CallInterfaceCallable callee);
    
        // returns the callee of this operation.
        func::FuncOp func() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top