Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for instanceKey (0.3 sec)

  1. pilot/pkg/serviceregistry/serviceentry/store.go

    	}
    	return all
    }
    
    func (s *serviceInstancesStore) getByKey(key instancesKey) []*model.ServiceInstance {
    	all := make([]*model.ServiceInstance, 0, countSliceValue(s.instances[key]))
    	for _, instances := range s.instances[key] {
    		all = append(all, instances...)
    	}
    	return all
    }
    
    // deleteInstanceKeys deletes all instances with the given configKey and instanceKey
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/echotest/filters_test.go

    	}
    	expected := map[string]struct{}{}
    	for _, i := range want {
    		expected[instanceKey(i)] = struct{}{}
    	}
    	unexpected := map[string]struct{}{}
    	for _, i := range all {
    		k := instanceKey(i)
    		if _, ok := expected[k]; !ok {
    			unexpected[k] = struct{}{}
    		}
    	}
    	for _, i := range got {
    		k := instanceKey(i)
    		// just remove the items rather than looping over expected, if anythings left we missed it
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  3. pilot/pkg/serviceregistry/serviceentry/controller.go

    )
    
    // instancesKey acts as a key to identify all instances for a given hostname/namespace pair
    // This is mostly used as an index
    type instancesKey struct {
    	hostname  host.Name
    	namespace string
    }
    
    type octetPair struct {
    	thirdOctet  int
    	fourthOctet int
    }
    
    func makeInstanceKey(i *model.ServiceInstance) instancesKey {
    	return instancesKey{i.Service.Hostname, i.Service.Attributes.Namespace}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  4. callbacks/transaction.go

    			db.Statement.ConnPool = tx.Statement.ConnPool
    			db.InstanceSet("gorm:started_transaction", true)
    		} else if tx.Error == gorm.ErrInvalidTransaction {
    			tx.Error = nil
    		} else {
    			db.Error = tx.Error
    		}
    	}
    }
    
    func CommitOrRollbackTransaction(db *gorm.DB) {
    	if !db.Config.SkipDefaultTransaction {
    		if _, ok := db.InstanceGet("gorm:started_transaction"); ok {
    			if db.Error != nil {
    				db.Rollback()
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Nov 29 01:33:20 UTC 2021
    - 675 bytes
    - Viewed (0)
  5. gorm.go

    	return db.Statement.Settings.Load(key)
    }
    
    // InstanceSet store value with key into current db instance's context
    func (db *DB) InstanceSet(key string, value interface{}) *DB {
    	tx := db.getInstance()
    	tx.Statement.Settings.Store(fmt.Sprintf("%p", tx.Statement)+key, value)
    	return tx
    }
    
    // InstanceGet get value with key from current db instance's context
    func (db *DB) InstanceGet(key string) (interface{}, bool) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Sun Aug 20 11:46:56 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-collective.mlir

      %instance_key = "tf.Const"() { value = dense<3> : tensor<i32> } : () -> tensor<i32>
      // CHECK: %[[REDUCE:.*]] = "mhlo.all_reduce"
      // CHECK-SAME{LITERAL}: replica_groups = dense<[[0, 1]]> : tensor<1x2xi64>
      // CHECK: mhlo.add
      // CHECK: mhlo.return
      // CHECK: return %[[REDUCE]]
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  7. pilot/pkg/serviceregistry/serviceentry/store_test.go

    			namespace: "dns",
    			name:      "dns-round-robin-2",
    		},
    	}
    	store.addInstances(cpKey, instances)
    
    	assert.Equal(t, store.getByKey(instancesKey{
    		hostname:  "example.com",
    		namespace: "dns",
    	}), expected)
    	assert.Equal(t, store.getByKey(instancesKey{
    		hostname:  "example.com",
    		namespace: otherNs.Namespace,
    	}), otherNsExpected)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/decompose_resource_ops.td

      Pattern<
        (TF_CollectiveReduceV2Op:$src_op
           $input, $group_size, $group_key, $instance_key, $ordering_token,
           $merge_op, $final_op, $communication_hint, $timeout_seconds,
           $is_stateless, $max_subdivs_per_device
        ),
        [(TF_CollectiveReduceV2Op
           $input, $group_size, $group_key, $instance_key, (EmptyList),
           $merge_op, $final_op, $communication_hint, $timeout_seconds,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 22 19:47:48 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/side-effect-analysis-test.mlir

      %group_key: tensor<i32>,
      %group_size: tensor<i32>,
      %instance_key: tensor<i32>) {
      tf_executor.graph {
        // expected-remark@above {{ID: 5}}
        %island = tf_executor.island {
            // expected-remark@above {{ID: 3}}
            // expected-remark@above {{Successors: {4}}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 20 04:39:18 UTC 2023
    - 129.7K bytes
    - Viewed (0)
  10. tensorflow/c/eager/parallel_device/parallel_device_test.cc

      TFE_OpSetAttrType(op.get(), "T", TFE_TensorHandleDataType(input));
      TFE_OpSetAttrInt(op.get(), "group_size", group_size);
      TFE_OpSetAttrInt(op.get(), "group_key", 0);
      TFE_OpSetAttrInt(op.get(), "instance_key", 0);
      const std::string merge_op("Add");
      TFE_OpSetAttrString(op.get(), "merge_op", merge_op.c_str(),
                          merge_op.length());
      const std::string final_op("Id");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 08 23:47:35 UTC 2021
    - 29.3K bytes
    - Viewed (0)
Back to top