Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 139 for roundTrip (0.12 sec)

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

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure cast with bfloat16 roundtrip exactly
    
    func.func @main(tensor<4x5xbf16>) -> tensor<4x5xbf16> {
    ^bb0(%arg0: tensor<4x5xbf16>):
      // CHECK-LABEL: @main
      // CHECK:  (tensor<4x5xbf16>) -> tensor<4x5xf32>
      // CHECK-NEXT:  (tensor<4x5xf32>) -> tensor<4x5xbf16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 18 21:28:19 UTC 2024
    - 596 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/quant_stats.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Ensure "quantfork.stats" roundtrip exactly
    
    func.func @main(%arg0: tensor<1x512x672x8xf32>) -> tensor<1x512x672x8xf32> {
    // CHECK-LABEL: @main
    // CHECK: %[[RES0:.*]] = "quantfork.stats"(%arg0) <{layerStats = dense<[0.000000e+00, 2.550000e+02]> : tensor<2xf32>}> : (tensor<1x512x672x8xf32>) -> tensor<1x512x672x8xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 657 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/optional.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir - -o - | FileCheck %s
    // Test to make sure optional parameters survive a roundtrip
    
    func.func @main(%arg0: tensor<40x37xf32>, %arg1: tensor<40x37xf32>) -> tensor<40x40xf32> {
    // CHECK: [[NONE:%.*]] = "tfl.no_value"() <{value}> : () -> none
    // CHECK: "tfl.fully_connected"(%arg0, %arg1, [[NONE]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 834 bytes
    - Viewed (0)
  4. pkg/apis/apps/v1/defaults_test.go

    				Spec: s,
    			},
    		},
    	}
    	output := roundTrip(t, runtime.Object(rs))
    	rs2 := output.(*appsv1.ReplicaSet)
    	defaultRequest := rs2.Spec.Template.Spec.Containers[0].Resources.Requests
    	requestValue := defaultRequest[v1.ResourceCPU]
    	if requestValue.String() != "0" {
    		t.Errorf("Expected 0 request value, got: %s", requestValue.String())
    	}
    }
    
    func roundTrip(t *testing.T, obj runtime.Object) runtime.Object {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/genericclioptions/command_headers.go

    //
    //	https://github.com/kubernetes/enhancements/tree/master/keps/sig-cli/859-kubectl-headers
    func (c *CommandHeaderRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) {
    	for header, value := range c.Headers {
    		req.Header.Set(header, value)
    	}
    	return c.Delegate.RoundTrip(req)
    }
    
    // ParseCommandHeaders fills in a map of custom headers into the CommandHeaderRoundTripper. These
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 26 17:14:05 UTC 2022
    - 3.2K bytes
    - Viewed (0)
  6. src/net/http/transport.go

    	}
    
    	// Transport request context.
    	//
    	// If RoundTrip returns an error, it cancels this context before returning.
    	//
    	// If RoundTrip returns no error:
    	//   - For an HTTP/1 request, persistConn.readLoop cancels this context
    	//     after reading the request body.
    	//   - For an HTTP/2 request, RoundTrip cancels this context after the HTTP/2
    	//     RoundTripper returns.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/apis/bootstraptoken/v1/utils_test.go

    		t.Run(rt.input, func(t *testing.T) {
    			if err := roundtrip(rt.input, rt.bts); err != nil {
    				t.Errorf("failed BootstrapTokenString JSON roundtrip with error: %v", err)
    			}
    		})
    	}
    }
    
    func roundtrip(input string, bts *BootstrapTokenString) error {
    	var b []byte
    	var err error
    	newbts := &BootstrapTokenString{}
    	// If string input was specified, roundtrip like this: string -> (unmarshal) -> object -> (marshal) -> string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 26 15:51:39 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/mix_tflite_vhlo.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --emit-stablehlo-ops=true %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --disable-vhlo-to-stablehlo=true - -o - | FileCheck %s
    // test stablehlo roundtrip
    
    module {
    func.func @main(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
      %0 = "vhlo.logistic_v1"(%arg0) : (tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32>
      %1 = "tfl.exp"(%0) : (tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> loc("exp")
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 907 bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo_const.mlir

    // RUN: flatbuffer_translate -mlir-to-tflite-flatbuffer --emit-stablehlo-ops=true %s -o - | flatbuffer_translate --tflite-flatbuffer-to-mlir --disable-vhlo-to-stablehlo=true - -o - | FileCheck %s
    // test stablehlo roundtrip
    
    module attributes {tfl.metadata = {"keep_stablehlo_constant" = "true"}} {
     func.func @main () -> tensor<1x1x1x96xf32> {
      %0 = "vhlo.constant_v1"() <{value = #vhlo.tensor_v1<dense<0.000000e+00> : tensor<f32>>}> : () -> tensor<1x1x1x96xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 833 bytes
    - Viewed (0)
  10. pkg/apis/batch/v1beta1/defaults_test.go

    					FailedJobsHistoryLimit:     utilpointer.Int32(5),
    				},
    			},
    		},
    	}
    
    	for name, test := range tests {
    		original := test.original
    		expected := test.expected
    		obj2 := roundTrip(t, runtime.Object(original))
    		actual, ok := obj2.(*batchv1beta1.CronJob)
    		if !ok {
    			t.Errorf("%s: unexpected object: %v", name, actual)
    			t.FailNow()
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Jan 08 12:14:37 UTC 2023
    - 3.9K bytes
    - Viewed (0)
Back to top