Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 3,247 for FUNC (0.18 sec)

  1. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    // test stablehlo roundtrip
    
    // Identity function to make the exporter happy
    func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> {
      func.return %arg0 : tensor<4xi8>
    }
    
    //CHECK:func.func @main(%arg0: tensor<4xi8>) -> tensor<4xi8> attributes {tf.entry_function = {inputs = "arg0", outputs = "arg0"}} {
    //CHECK: return %arg0 : tensor<4xi8>
    //CHECK:}
    
    func.func @logistic(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (1)
  2. cmd/kubeadm/app/util/apiclient/idempotency_test.go

    			}
    		})
    	}
    }
    
    func TestCreateOrMutateConfigMap(t *testing.T) {
    	tests := []struct {
    		name          string
    		setupClient   func(*clientsetfake.Clientset)
    		mutator       func(*v1.ConfigMap) error
    		expectedError bool
    	}{
    		{
    			name: "create configmap",
    			setupClient: func(client *clientsetfake.Clientset) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_optimize_global_tensors_interprocedural.mlir

      // CHECK: func private @f(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32>
      func.func private @f(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32> {
        %val = "tf.PartitionedCall"(%arg0) {config = "", config_proto = "", executor_type = "", f = @g} : (tensor<*x!tf_type.resource>) -> (tensor<f32>)
        func.return %val : tensor<f32>
      }
    
      // CHECK: func private @g(%arg0: tensor<*x!tf_type.resource>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 10.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

    // CHECK: func private @tf.IfRegion_else(%arg0: tensor<2xi64>) -> tensor<*xf32>
    // CHECK-NEXT:    "tf.Cast"
    // CHECK: func private @tf.IfRegion_then(%arg0: tensor<2xi64>) -> tensor<*xf32>
    // CHECK-NEXT:    "tf.Cast"
    func.func private @testIf1Then(tensor<*xf32>) -> tensor<*xf32>
    func.func private @testIf1Else(tensor<*xf32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfrt/tests/sink_in_invariant_ops.mlir

      %2 = "tf.Identity"(%1) {device = "/device:CPU:0"} : (tensor<1x3xf32>) -> tensor<1x3xf32>
      func.return %2 : tensor<1x3xf32>
    }
    
    // CHECK-LABEL: func @main
    func.func @main(%arg0: tensor<1x3xf32> {tf_saved_model.index_path = ["input"]}) -> (tensor<*xf32> {tf_saved_model.index_path = ["r"]})
      attributes {tf_saved_model.exported_names = ["main"]} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 21K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-communication.mlir

    // CHECK: func @callee4()
    func.func @callee4() {
      // CHECK:      [[CALLEE4_INIT_TOKEN:%.*]] = mhlo.create_token
    
      // CHECK:      [[CALL_5:%.*]] = call @callee5([[CALLEE4_INIT_TOKEN]])
      func.call @callee5() : () -> ()
    
      // CHECK:      return
      func.return
    }
    
    // CHECK: func private @callee5([[CALLEE5_ARG0:%.*]]: !mhlo.token) -> !mhlo.token
    func.func private @callee5() {
      // CHECK-NOT:  mhlo.create_token
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 18:24:20 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  7. pkg/securitycontext/accessors.go

    }
    
    type podSecurityContextWrapper struct {
    	podSC *api.PodSecurityContext
    }
    
    func (w *podSecurityContextWrapper) PodSecurityContext() *api.PodSecurityContext {
    	return w.podSC
    }
    
    func (w *podSecurityContextWrapper) ensurePodSC() {
    	if w.podSC == nil {
    		w.podSC = &api.PodSecurityContext{}
    	}
    }
    
    func (w *podSecurityContextWrapper) HostNetwork() bool {
    	if w.podSC == nil {
    		return false
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 22 16:15:27 UTC 2023
    - 14.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-with-tf2xla-hlo-importer.mlir

      func.func @convert(%arg0: tensor<2xi32>) -> tensor<2xf32> {
        // CHECK: mhlo.convert %arg0 : (tensor<2xi32>) -> tensor<2xf32>
        %0 = "tf.Cast"(%arg0) {Truncate = false} : (tensor<2xi32>) -> tensor<2xf32>
        func.return %0 : tensor<2xf32>
      }
    
      // CHECK-LABEL: func @constant
      func.func @constant(%arg0: tensor<f32>) -> tensor<f32> {
        // CHECK: %[[ONE:.*]] = mhlo.constant dense<1.000000e+00> : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 38.6K bytes
    - Viewed (1)
  9. pkg/log/scope_test.go

    	}{
    		{
    			func() { klog.Error("foo") },
    			"error\tklog\tfoo$",
    		},
    		{
    			func() { klog.Error("foo") },
    			"foo$",
    		},
    		{
    			func() { klog.Errorf("fmt %v", "item") },
    			"fmt item$",
    		},
    		{
    			func() { klog.Errorf("fmt %v", "item") },
    			"fmt item$",
    		},
    		{
    			func() { klog.ErrorS(errors.New("my error"), "info") },
    			"error\tklog\tmy error: info",
    		},
    		{
    			func() { klog.Info("a", "b") },
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jan 03 17:36:09 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. test/inline.go

    // any re-assignment prevents closure inlining
    func m() int {
    	foo := func() int { return 1 } // ERROR "can inline m.func1" "func literal does not escape"
    	x := foo()
    	foo = func() int { return 2 } // ERROR "can inline m.func2" "func literal does not escape"
    	return x + foo()
    }
    
    // address taking prevents closure inlining
    func n() int {
    	foo := func() int { return 1 } // ERROR "can inline n.func1" "func literal does not escape"
    	bar := &foo
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 11.7K bytes
    - Viewed (0)
Back to top