Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for conv4 (0.06 sec)

  1. test/typeparam/issue49027.dir/a.go

    package a
    
    func Conv(v interface{}) string {
    	return conv[string](v)
    }
    
    func conv[T any](v interface{}) T {
    	return v.(T)
    }
    
    func Conv2(v interface{}) (string, bool) {
    	return conv2[string](v)
    }
    
    func conv2[T any](v interface{}) (T, bool) {
    	x, ok := v.(T)
    	return x, ok
    }
    
    func Conv3(v interface{}) string {
    	return conv3[string](v)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 19 22:47:48 UTC 2021
    - 871 bytes
    - Viewed (0)
  2. test/typeparam/issue49027.dir/main.go

    	"./a"
    	"fmt"
    )
    
    func main() {
    	s := "foo"
    	x := a.Conv(s)
    	if x != s {
    		panic(fmt.Sprintf("got %s wanted %s", x, s))
    	}
    	y, ok := a.Conv2(s)
    	if !ok {
    		panic("conversion failed")
    	}
    	if y != s {
    		panic(fmt.Sprintf("got %s wanted %s", y, s))
    	}
    	z := a.Conv3(s)
    	if z != s {
    		panic(fmt.Sprintf("got %s wanted %s", z, s))
    	}
    	w := a.Conv4(a.Mystring(s))
    	if w != a.Mystring(s) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 617 bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/layout_optimization_to_nhwc.mlir

                                 %arg2: tensor<256xf32>,          // batch_norm args
                                 %arg3: tensor<7x7x3x64xf32>,    // conv filter #0
                                 %arg4: tensor<1x1x64x256xf32>   // conv filter #1
                                ) -> tensor<?x256xf32> {
    
      // This is a simplified ResNet layer that gets input in NHWC format, converts
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/examples/mnist/mnist_train.py

        # output shape: [-1, 28, 28, 32]
        conv1 = gen_mnist_ops.new_conv2d(x, self.weights['f1'], self.biases['b1'],
                                         1, 1, 1, 1, 'SAME', 'RELU')
    
        # Max pooling. The kernel size spec {ksize} also follows the layout of
        # the data. Here we have a pooling window of 2, and a stride of 2.
        # output shape: [-1, 14, 14, 32]
        max_pool1 = gen_mnist_ops.new_max_pool(conv1, 2, 2, 2, 2, 'SAME')
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 20 03:05:18 UTC 2021
    - 6.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/optimize.td

    def IsNull : Constraint<CPred<"!$0">>;
    
    // This pattern optimizes:
    //   conv/dot_general + a + b -> conv/dot_general + (a + b)
    //   conv/dot_general - a - b -> conv/dot_general - (a + b)
    //   conv/dot_general + a - b -> conv/dot_general + (a - b)
    //   conv/dot_general - a + b -> conv/dot_general - (a - b)
    foreach OpsTuple = [
        [CHLO_BroadcastAddOp, CHLO_BroadcastAddOp, CHLO_BroadcastAddOp],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Feb 24 02:26:47 UTC 2024
    - 2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-tfl-stablehlo-conv.mlir

    Michael Levesque-Dion <******@****.***> 1706075999 -0800
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jan 24 06:08:43 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  7. src/main/assemblies/files/service.bat

    set unit=%value:~-1%
    rem assume the unit is specified
    set conv=%value:~0,-1%
    
    if "%unit%" == "k" goto kilo
    if "%unit%" == "K" goto kilo
    if "%unit%" == "m" goto mega
    if "%unit%" == "M" goto mega
    if "%unit%" == "g" goto giga
    if "%unit%" == "G" goto giga
    
    rem no unit found, must be bytes; consider the whole value
    set conv=%value%
    rem convert to KB
    set /a conv=%conv% / 1024
    :kilo
    rem convert to MB
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Jan 15 06:32:15 UTC 2023
    - 6K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/optimize_graph.mlir

      // CHECK: %[[QUANT_ARG_0:.*]] = stablehlo.uniform_quantize %[[ARG_0]]
      // CHECK: %[[CONV:.*]] = stablehlo.convolution(%[[QUANT_ARG_0]], %[[QUANT_CST]])
      // CHECK-NOT: stablehlo.uniform_quantize
      // CHECK: %[[DEQUANT:.*]] = stablehlo.uniform_dequantize %[[CONV]]
      // CHECK: return %[[DEQUANT]]
      %cst = stablehlo.constant dense<0.4> : tensor<2x3x3x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 08 22:40:14 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/tests/optimize.mlir

    // CHECK-DAG: %[[cst:.*]] = "tf.Const{{.*}} dense<8.000000e+00> : tensor<3x3x3x16xf32>
    // CHECK-DAG: %[[cst_0:.*]] = "tf.Const{{.*}} dense<1.200000e+01> : tensor<16xf32>
    // CHECK-NEXT: %[[conv:.*]] = "tf.Conv2D"(%arg0, %[[cst]])
    // CHECK-NEXT: %[[bias:.*]] = "tf.AddV2"(%[[conv]], %[[cst_0]])
    // CHECK-NEXT: return %[[bias]] : tensor<256x8x7x16xf32>
    }
    
    // CHECK-LABEL: convaddv2mul
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/quantization/tensorflow/tests/tf_to_quant_4bit.mlir

    // CHECK: %[[DEQUANTIZE:.*]] = "quantfork.dcast"(%[[QUANTIZE]])
    // CHECK: %[[CONV:.*]] = "tf.Conv2D"(%arg0, %[[DEQUANTIZE]])
    // CHECK: return %[[CONV]]
    }
    
    // CHECK-LABEL: perChannelFakeQuantWithConv2D
    func.func @perChannelFakeQuantWithConv2D(tensor<256x32x32x3xf32>) -> (tensor<256x8x7x16xf32>) {
    ^bb0(%arg: tensor<256x32x32x3xf32>) :
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 9.4K bytes
    - Viewed (0)
Back to top