Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 736 for pconstants (0.14 sec)

  1. src/internal/types/testdata/check/constdecl.go

    package constdecl
    
    import "math"
    import "unsafe"
    
    var v int
    
    // Const decls must be initialized by constants.
    const _ = v /* ERROR "not constant" */
    const _ = math /* ERROR "not constant" */ .Sin(0)
    const _ = int /* ERROR "not an expression" */
    
    func _() {
    	const _ = v /* ERROR "not constant" */
    	const _ = math /* ERROR "not constant" */ .Sin(0)
    	const _ = int /* ERROR "not an expression" */
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  2. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/base/KtConstantValue.kt

    
    /**
     * A Kotlin constant value. This value amy be used as `const val` initializer or annotation argument.
     * Also, may represent evaluated constant value. So, `1 + 2` will be represented as `KaIntConstantValue(3)`
     *
     * For more info about constant values please see [official Kotlin documentation](https://kotlinlang.org/docs/properties.html#compile-time-constants])
     */
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/constant-folding.mlir

        func.return %1 : tensor<10x19xf32>
      }
    }
    
    // Tests that foldable ops are constant-folded to enable legalization of ops
    // that require compile time constant operand.
    // "tf.Shape" can only be folded away after shape inference. tf.Reshape can only
    // be lowered when tf.Shape is folded into a constant.
    
    // CHECK-LABEL: HloModule main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 25 02:54:34 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. test/const7.go

    	defer os.RemoveAll(dir)
    
    	const bitLimit = 512
    	const charLimit = 10000 // compiler-internal constant length limit
    	testProg(dir, "x1", bitLimit, "")
    	testProg(dir, "x2", bitLimit+1, "constant overflow")
    	testProg(dir, "x3", charLimit-2, "constant overflow") // -2 because literal contains 0b prefix
    	testProg(dir, "x4", charLimit-1, "excessively long constant")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 11 20:56:32 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/cc/constant_fold.h

    namespace mlir {
    namespace quant {
    
    // Applies constant folding recursively if the operation and all of its operands
    // are foldable. Returns the constants generated by constant-folding or the
    // original operation's outputs if not folded.
    SmallVector<Value> ConstantFoldOpIfPossible(Operation* op);
    
    // This pattern tries to constant-fold the quantizable operands of supported
    // TF operations.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jul 04 14:27:31 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/order_by_dialect.mlir

    // -----
    
    // CHECK-LABEL: @mhlo_while
    func.func private @mhlo_while() {
      // CHECK-NEXT: mhlo.constant
      // CHECK-NEXT: mhlo.constant
      // CHECK-NEXT: mhlo.constant
      %0 = mhlo.constant dense<-1> : tensor<i32>
      %1 = mhlo.constant dense<0> : tensor<i32>
      %2 = mhlo.constant dense<20> : tensor<i32>
      // CHECK-NEXT: mhlo.while
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/common/attrs_and_constraints.td

    // Checks if the value is a float constant and its splat value is equal to `x`.
    class IsSplatValueEqual<string x> : Constraint<CPred<
      "IsSplatValueEqual<float>($0, "# x #")">>;
    
    // Checks if two values are float constants and their values are equal.
    def AreSplatValuesEqual : Constraint<CPred<
      "AreSplatValuesEqual<float>($0, $1)">>;
    
    // Checks if the value is an integer constant and its splat value is equal to x.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 04:55:44 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/kernels/xla_ops.h

    namespace tensorflow {
    
    
    // XlaLocalLaunchBase is almost the same as XlaLocalLaunchOp.
    // The only difference is that it does not require arguments to follow
    // the "constants, then regular args, then resources" order.
    // It takes vectors of constant and resource arguments explicitly.
    // It does not have corresponding OpDef because it is never present
    // in the GraphDef.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 23:44:26 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  9. tools/istio-iptables/pkg/builder/iptables_builder_impl.go

    			_, _ = fmt.Fprintln(&b, "COMMIT")
    		}
    	}
    	return b.String()
    }
    
    func (rb *IptablesRuleBuilder) buildRestore(rules []*Rule) string {
    	tableRulesMap := map[string][]string{
    		constants.FILTER: {},
    		constants.NAT:    {},
    		constants.MANGLE: {},
    	}
    
    	chainTableLookupMap := sets.New[string]()
    	for _, r := range rules {
    		chainTable := fmt.Sprintf("%s:%s", r.chain, r.table)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 11 14:29:54 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. tensorflow/cc/saved_model/testdata/generate_chunked_models.py

    from tensorflow.tools.proto_splitter import constants
    from tensorflow.tools.proto_splitter.python import saved_model as proto_splitter
    
    SPLITTER_TESTDATA_PATH = flags.DEFINE_string(
        "path", None, help="Path to testdata directory.")
    
    
    def generate_non_chunked_model(non_chunked_dir: str):
      root = module.Module()
      root.c = constant_op.constant(np.random.random_sample([150, 150]))
      constants.debug_set_max_size(80000)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 21:43:11 UTC 2023
    - 2.8K bytes
    - Viewed (0)
Back to top