Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 47 for I32 (0.02 sec)

  1. tensorflow/compiler/mlir/tensorflow_to_stablehlo/python/integration_test/tensorflow_to_stablehlo_test.py

            self.assertIn('stablehlo.add %arg0, %cst : tensor<4xf32>', str(module))
    
      def test_tf_mlir_to_stablehlo(self):
        assembly = """
          module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 268 : i32}} {
            func.func @main(%arg0 : tensor<?xf32>) -> tensor<?xf32> {
              %cst = "tf.Const"() {value = dense<1.0> : tensor<f32>} : () -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 22:58:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_utils.h

      }
      if (AttrType content = mlir::dyn_cast<AttrType>(attr)) {
        *out_attr = content;
        return true;
      } else {
        return false;
      }
    }
    
    // Changes a DenseIntElementsAttr **containing I64** elements to an I32 Vector.
    bool DenseI64AttrToI32Vector(const DenseIntElementsAttr& dense_attr,
                                 std::vector<int32_t>* out_vec);
    
    // Gets boolean from composite attrs if it exists.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 18:33:05 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter_test.cc

      %3 = "tfl.pack"(%1, %2) {axis = 0 : i32, per_device_costs = {CPU = 2.0 : f32, GPU = -1.0 : f32}, values_count = 2 : i32, tac.device = "CPU"} : (tensor<1xf32>, tensor<1xf32>) -> tensor<2x1xf32>
      func.return %3 : tensor<2x1xf32>
    })";
      const std::string kExpectedFB = CreateRuntimeMetadata();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/abi.go

    		//
    		// 	(import "gojs" "add" (func (param i32)))
    		wi.Params = []obj.WasmField{{Type: obj.WasmI32}}
    	} else {
    		// All other imported functions use the normal WASM ABI.
    		// Example:
    		//
    		// 	//go:wasmimport a_module add
    		// 	func importedAdd(a, b uint) uint
    		//
    		// will roughly become
    		//
    		// 	(import "a_module" "add" (func (param i32 i32) (result i32)))
    		abiConfig := AbiForBodylessFuncStackMap(f)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc

    namespace mlir {
    namespace mhlo {
    
    using func::FuncOp;
    using mlir::ModuleOp;
    
    static constexpr char kMlirModuleStr[] = R"(
    module attributes {tf.versions = {bad_consumers = [], min_consumer = 0 : i32, producer = 1442 : i32}} {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 03:31:01 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/stablehlo/tests/compose-uniform-quantized-type.mlir

        %4 = stablehlo.constant dense<4.000000e-01> : tensor<1x1x1xf32>  // Input 2 inverse scale (1 / s2).
        %5 = stablehlo.constant dense<0> : tensor<1x1x1xi8>  // Input 2 zero point (z2).
        %6 = stablehlo.constant dense<0> : tensor<1x1x1xi32>  // Input 2 zero point (z2) (upcast & folded into i32).
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 17:10:32 UTC 2024
    - 37K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

    def LegalizeRelu6 : Pat<(TF_Relu6Op $arg), (TFL_Relu6Op $arg)>;
    def LegalizeRelu : Pat<(TF_ReluOp $arg), (TFL_ReluOp $arg)>;
    // TFL Relu doesn't support I32/I64 type, so legalizes TF Relu to TFL Maximum.
    def LegalizeReluI32 :
      Pat<(TF_ReluOp TensorOf<[I32]>:$arg),
          (TFL_MaximumOp $arg,
            (Arith_ConstantOp ConstantAttr<RankedI32ElementsAttr<[]>,"0">))>;
    def LegalizeReluI64 :
      Pat<(TF_ReluOp TensorOf<[I64]>:$arg),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

    DECL_CONVERT_OP(Unpack);
    DECL_CONVERT_OP(Conv3D);
    DECL_CONVERT_OP(Conv3DBackpropInputV2);
    
    #undef DECL_CONVERT_OP
    
    // Converts any IntegerAttr to an IntegerAttr of an i32 type.
    // The value won't change in the new attribute, but if the value is out of
    // the bound of i32, the function returns a failure.
    LogicalResult ConvertToI32Attr(IntegerAttr attr, IntegerAttr* attr_i32) {
      if (attr.getType().isInteger(/*width=*/32)) {
        *attr_i32 = attr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/builtins0.go

    	close(f2()) // ERROR "too many arguments"
    }
    
    func complex1() {
    	var i32 int32
    	var f32 float32
    	var f64 float64
    	var c64 complex64
    	var c128 complex128
    	_ = complex() // ERROR "not enough arguments"
    	_ = complex(1) // ERROR "not enough arguments"
    	_ = complex(true /* ERROR "mismatched types" */ , 0)
    	_ = complex(i32 /* ERROR "expected floating-point" */ , 0)
    	_ = complex("foo" /* ERROR "mismatched types" */ , 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tfrt/ir/mlrt/tf_mlrt_ops.td

      let description = [{
        Cast a Tensor to int32.
    
        Example:
          %one = tf_mlrt.tensor_to_int32 %src_tenosr
      }];
    
      let arguments = (ins TFTensorType:$src);
      let results = (outs I32:$result);
      let assemblyFormat = "operands attr-dict";
    }
    
    def BoolToTensorOp : TensorflowMlrt_Op<"bool_to_tensor", [Pure]> {
      let summary = "Cast a boolean to a tensor.";
      let description = [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 13.6K bytes
    - Viewed (0)
Back to top