Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 788 for aConstant (0.36 sec)

  1. tensorflow/c/experimental/saved_model/core/revived_types/constant.h

    class Constant : public TensorHandleConvertible {
     public:
      static Status Create(ImmediateExecutionContext* ctx,
                           AbstractTensorInterface* tensor,
                           std::unique_ptr<Constant>* output);
    
      // RevivedConstant is movable, but not copyable.
      Constant(Constant&& other) = default;
      Constant& operator=(Constant&& other) = default;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Aug 30 19:43:25 UTC 2022
    - 2.3K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/revived_types/constant.cc

    #include "tensorflow/core/platform/types.h"
    
    namespace tensorflow {
    
    Constant::Constant(ImmediateTensorHandlePtr handle)
        : TensorHandleConvertible(std::move(handle)) {}
    
    Status Constant::Create(ImmediateExecutionContext* ctx,
                            AbstractTensorInterface* tensor,
                            std::unique_ptr<Constant>* output) {
      ImmediateExecutionTensorHandle* handle = ctx->CreateLocalHandle(tensor);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 23 19:44:24 UTC 2020
    - 1.8K 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. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/constant-folding-hook.mlir

    // CHECK:         [[CONSTANT:%.*]] = s32[0]{0} constant({})
    // CHECK:         ROOT %tuple.{{[0-9]+}} = (s32[0]{0}, s32[0]{0}) tuple(s32[0]{0} [[CONSTANT]], s32[0]{0} [[CONSTANT]])
    // CHECK:       }
    
    // NO_TUPLES-LABEL: HloModule main
    // NO_TUPLES:       ENTRY %main.{{[0-9+]}} () -> (s32[0], s32[0]) {
    // NO_TUPLES:         [[CONSTANT:%.*]] = s32[0]{0} constant({})
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 23 18:56:13 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/unfold-large-splat-constant.mlir

    // RUN: tf-opt %s -unfold-large-splat-constant | FileCheck %s
    
    // CHECK-LABEL: @unfold_large_constant_splat
    func.func @unfold_large_constant_splat() -> (tensor<10x10xf32>, tensor<1000x1000xf32>) {
      %0 = arith.constant dense<0.00000e+00> : tensor<10x10xf32>
      %1 = arith.constant dense<1.00000e+00> : tensor<1000x1000xf32>
      func.return %0, %1 : tensor<10x10xf32>, tensor<1000x1000xf32>
    
      // CHECK-DAG: %cst = arith.constant dense<0.000000e+00> : tensor<10x10xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 26 23:53:32 UTC 2022
    - 781 bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-tfl-stablehlo-constant.mlir

    module {
      func.func @main() -> tensor<1xi64> {
      %0 = "tfl.custom"() {custom_code = "stablehlo.constant", custom_option = #tfl<const_bytes : "0x76616C75650001020109010101062C022401">} : () -> tensor<1xi64>
      func.return %0 : tensor<1xi64>
      }
    }
    
    // CHECK:  module {
    // CHECK-NEXT:    func @main() -> tensor<1xi64> {
    // CHECK-NEXT:    %[[c0:.+]] = stablehlo.constant dense<2> : tensor<1xi64>
    // CHECK-NEXT:    return %[[c0]] : tensor<1xi64>
    // CHECK-NEXT:    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 18:33:43 UTC 2024
    - 574 bytes
    - Viewed (0)
  7. cmd/kubeadm/app/cmd/options/constant.go

    calvin <******@****.***> 1706611761 +0800
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  8. src/go/constant/example_test.go

    func ExampleCompare() {
    	vs := []constant.Value{
    		constant.MakeString("Z"),
    		constant.MakeString("bacon"),
    		constant.MakeString("go"),
    		constant.MakeString("Frame"),
    		constant.MakeString("defer"),
    		constant.MakeFromLiteral(`"a"`, token.STRING, 0),
    	}
    
    	slices.SortFunc(vs, func(a, b constant.Value) int {
    		if constant.Compare(a, token.LSS, b) {
    			return -1
    		}
    		if constant.Compare(a, token.GTR, b) {
    			return +1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/const0.go

    // special cases
    const (
    	_n0 = nil /* ERROR "not constant" */
    	_n1 = [ /* ERROR "not constant" */ ]int{}
    )
    
    // iotas must not be usable in expressions outside constant declarations
    type _ [iota /* ERROR "iota outside constant decl" */ ]byte
    var _ = iota /* ERROR "iota outside constant decl" */
    func _() {
    	_ = iota /* ERROR "iota outside constant decl" */
    	const _ = iota
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:25 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/const.go

    		return constant.MakeFloat64(f)
    	}
    	return nil
    }
    
    func fitsFloat64(x constant.Value) bool {
    	f, _ := constant.Float64Val(x)
    	return !math.IsInf(f, 0)
    }
    
    func roundFloat64(x constant.Value) constant.Value {
    	f, _ := constant.Float64Val(x)
    	if !math.IsInf(f, 0) {
    		return constant.MakeFloat64(f)
    	}
    	return nil
    }
    
    // representable checks that a constant operand is representable in the given
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 19:32:17 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top