Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,166 for constant_ (0.22 sec)

  1. tensorflow/compiler/mlir/tfr/integration/graph_decompose_test.py

    
    class GraphDecomposeTest(test.TestCase):
    
      def testAddN(self):
        add = def_function.function(gen_composite_ops.my_add_n)
        t1 = constant_op.constant([[1.0, 2.0], [3.0, 4.0]])
        t2 = constant_op.constant([[1.0, 2.0], [3.0, 4.0]])
        t3 = constant_op.constant([[1.0, 2.0], [3.0, 4.0]])
        sq1 = add([t1])
        sq2 = add([t1, t2])
        sq3 = add([t1, t2, t3])
        self.assertAllEqual(sq1.numpy().reshape(-1), [1, 2, 3, 4])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Sep 28 21:37:05 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/tests/duplicate_shape_determining_constants.mlir

      return %0 : tensor<16x4xf32>
    }
    // Check that the constant is cloned with same value.
    // The duplicated constant is the last index of the ConcatV2 op (which
    // accepts a variadic arg).
    // CHECK-DAG: %[[CST_0:.*]] = "tf.Const"()
    // CHECK-SAME: value = dense<1> : tensor<i32>
    // CHECK-DAG: %[[CST_1:.*]] = "tf.Const"()
    // CHECK-SAME: value = dense<1> : tensor<i32>
    
    // Check that the constants used for tf.ConcatV2 and tf.AddV2 are different.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Nov 24 07:44:46 UTC 2022
    - 11K bytes
    - Viewed (0)
  3. test/fixedbugs/issue11326.go

    	// binary exponent, so these constants cannot be represented anymore
    	// internally. However, the language spec does not preclude other
    	// implementations from handling these. Don't check the error.
    	// var _ = 1e2147483647 // "constant too large"
    	// var _ = 1e646456993  // "constant too large"
    
    	// Any implementation must be able to handle these constants at
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 23 05:11:09 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

    // only be used as the shape-determining operand; it will not replace other
    // usages of the original constant. If the operands are not constants (i.e.
    // results of some other computation), then the pass recursively traverses the
    // call tree upwards and duplicates all constants found in the subtree in a
    // similar manner.
    //
    // This pass may be used to avoid placing shape-determining constants in the CPU
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/tests/pipelines/process_nchw_tensor.mlir

    // function signature. Constants are also transposed accordingly.
    
    // CHECK-LABEL: nchw_conv_with_bias_add
    // CHECK-SAME: %[[ARG:.+]]: tensor<1x2x5x5xf32>
    func.func @nchw_conv_with_bias_add(%arg0: tensor<1x2x5x5xf32>) -> tensor<1x4x5x5xf32> {
      %0 = stablehlo.constant dense<2.000000e+00> : tensor<4x2x3x3xf32>
      %1 = stablehlo.constant dense<3.000000e+00> : tensor<1x4x5x5xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 18 20:32:46 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Enums.java

          Class<T> enumClass) {
        synchronized (enumConstantCache) {
          Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass);
          if (constants == null) {
            constants = populateCache(enumClass);
          }
          return constants;
        }
      }
    
      /**
       * Returns a serializable converter that converts between strings and {@code enum} values of type
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/tensorflow/tests/tf_to_quant.mlir

    // CHECK:  return %1
    }
    
    // CHECK-LABEL: fakeQuantFolded
    func.func @fakeQuantFolded() -> (tensor<8xf32>) {
      %in = arith.constant dense<0.0> : tensor<8xf32>
      %min = arith.constant dense<0.0> : tensor<f32>
      %max = arith.constant dense<255.0> : tensor<f32>
      %mini = "tf.Identity"(%min) : (tensor<f32>) -> tensor<f32>
      %maxi = "tf.Identity"(%max) : (tensor<f32>) -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 9.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

    //
    // It should be guaranteed that `rhs_op` is either:
    // 1. `stablehlo.constant`
    // 2. `stablehlo.constant`->`stablehlo.transpose`.
    //
    // TODO: b/328156969 - Support the case where the RHS doesn't come from a
    // constant.
    TFL::QConstOp CreateTflConstOpForFilter(Operation* rhs_op,
                                            PatternRewriter& rewriter,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Enums.java

          Class<T> enumClass) {
        synchronized (enumConstantCache) {
          Map<String, WeakReference<? extends Enum<?>>> constants = enumConstantCache.get(enumClass);
          if (constants == null) {
            constants = populateCache(enumClass);
          }
          return constants;
        }
      }
    
      /**
       * Returns a serializable converter that converts between strings and {@code enum} values of type
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 26 11:56:44 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. src/go/doc/testdata/blank.1.golden

    PACKAGE blank
    
    IMPORTPATH
    	testdata/blank
    
    IMPORTS
    	os
    
    FILENAMES
    	testdata/blank.go
    
    CONSTANTS
    	// T constants counting from unexported constants. 
    	const (
    		tweedledee	T	= iota
    		tweedledum
    		C1
    		C2
    		alice
    		C3
    		redQueen	int	= iota
    		C4
    	)
    
    	// Constants with a single type that is not propagated. 
    	const (
    		zero		os.FileMode	= 0
    		Default				= 0644
    		Useless				= 0312
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 18:01:14 UTC 2017
    - 1001 bytes
    - Viewed (0)
Back to top