Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for matchesFilter (0.17 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.cc

      const char* filter_str = getenv(env_var.c_str());
      if (filter_str) {
        filter = absl::StrSplit(filter_str, ';', absl::SkipWhitespace());
      }
      return filter;
    }
    
    bool BridgeLoggerConfig::MatchesFilter(const std::string& str,
                                           const std::vector<std::string>& filter,
                                           bool exact_match) {
      if (filter.empty()) return true;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 06 22:29:51 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. cni/pkg/repair/repaircontroller.go

    	m.With(resultLabel.Value(resultSuccess)).Increment()
    	return nil
    }
    
    // MatchesFilter returns true if the pod matches the repair filter criteria
    func (c *Controller) matchesFilter(pod *corev1.Pod) bool {
    	// Helper function; checks that a container's termination message matches filter
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Feb 10 00:31:55 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/utils/bridge_logger.h

      static std::vector<std::string> GetFilter(const std::string& env_var);
      // Returns `true` iff any of the strings in `filter` matches `str`, either
      // exactly or as a substring, depending on `exact_match`.
      static bool MatchesFilter(const std::string& str,
                                const std::vector<std::string>& filter,
                                bool exact_match);
    
      // Only log pass invocations whose pass name exactly matches any string in
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 06 22:29:51 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  4. cni/pkg/repair/repair_test.go

    				InitContainerStatus: &corev1.ContainerStatus{},
    			}),
    			false,
    		},
    	}
    	for _, tt := range cases {
    		t.Run(tt.name, func(t *testing.T) {
    			c := &Controller{cfg: tt.config}
    			assert.Equal(t, c.matchesFilter(tt.pod), tt.want)
    		})
    	}
    }
    
    func fakeClient(pods ...*corev1.Pod) kube.Client {
    	var csPods []runtime.Object
    
    	for _, pod := range pods {
    		csPods = append(csPods, pod.DeepCopy())
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 24 03:31:28 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  5. cmd/batch-expire.go

    				continue
    			}
    
    			prevObj = result.Item
    			matchedFilter = match
    			versionsCount = 1
    			// Include the latest version
    			if matchedFilter.Purge.RetainVersions == 0 {
    				toDel = append(toDel, expireObjInfo{
    					ObjectInfo: result.Item,
    					ExpireAll:  true,
    				})
    				continue
    			}
    		} else if prevObj.Name == result.Item.Name {
    			if matchedFilter.Purge.RetainVersions == 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 11 13:50:53 UTC 2024
    - 21.1K bytes
    - Viewed (0)
Back to top