Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for constant_tensor (0.23 sec)

  1. tensorflow/compiler/mlir/tfr/tests/decompose.mlir

    // CHECK-NEXT: %[[none_min:.*]] = "tfr.constant_tensor"(%[[N_128]])
    // CHECK-NEXT: %[[none_max:.*]] = "tfr.constant_tensor"(%[[N127]])
    // CHECK-NEXT: %[[relu_min:.*]] = "tfr.constant_tensor"(%[[N42]])
    // CHECK-NEXT: %[[relu_max:.*]] = "tfr.constant_tensor"(%[[N127]])
    // CHECK-NEXT: %[[relu6_min:.*]] = "tfr.constant_tensor"(%[[N42]])
    // CHECK-NEXT: %[[relu6_max:.*]] = "tfr.constant_tensor"(%[[N102]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/tests/ops.mlir

    func.func @constant_tensor_scalar(%arg0: i32) -> tensor<i32> {
      %0 = "tfr.constant_tensor"(%arg0) : (i32) -> tensor<i32>
      func.return %0 : tensor<i32>
    }
    
    // -----
    
    // CHECK-LABEL: constant_tensor_vector
    func.func @constant_tensor_vector(%arg0: vector<1x2xi32>) -> tensor<1x2xi32> {
      %0 = "tfr.constant_tensor"(%arg0) : (vector<1x2xi32>) -> tensor<1x2xi32>
      func.return %0 : tensor<1x2xi32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jan 14 22:15:06 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/tests/end2end.mlir

      %batch = "tfr.constant_tensor"(%batch_size) : (i64) -> tensor<i64>
      %batch1 = "tfr.cast"(%batch) : (tensor<i64>) -> !tfr.tensor
      %calls = "tfr.constant_tensor"(%num_parallel_calls) : (i64) -> tensor<i64>
      %calls1 = "tfr.cast"(%calls) : (tensor<i64>) -> !tfr.tensor
      %drop = "tfr.constant_tensor"(%drop_remainder) : (i1) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

          CHECK-NEXT: %[[cst_5:.*]] = arith.constant false
          CHECK-NEXT: %[[cst_6:.*]] = "tfr.constant_tensor"(%[[list]]) : (!tfr.attr) -> !tfr.tensor
          CHECK-NEXT: %[[cst_7:.*]] = "tfr.constant_tensor"(%y1) : (i64) -> !tfr.tensor
          CHECK-NEXT: %[[cst_8:.*]] = "tfr.constant_tensor"(%[[cst_4]]) : (i1) -> !tfr.tensor
          CHECK-NEXT: %[[cst_9:.*]] = "tfr.constant_tensor"(%[[cst_5]]) : (i1) -> !tfr.tensor
          CHECK-NEXT: %[[cst_10:.*]] = arith.constant -1 : i64
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      }];
    }
    
    def TFR_ConstantTensorOp : TFR_Op<"constant_tensor", [Pure]> {
      let description = [{
        The `constant_tensor` operation converts the operand with non-built-in
        tensor type to built-in tensor type or tfr.tensor type. If it is built-in
        tensor type, the shape shouldn't be changed during the conversion.
    
        Example:
    
        ```mlir
        %1 = tfr.constant_tensor(%0) : f32 -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/tests/canonicalize.mlir

    }
    
    // -----
    
    // CHECK-LABEL: constant_tensor_array
    func.func @constant_tensor_array() -> !tfr.tensor {
      %0 = tfr.constant [1, -1, 3] -> !tfr.attr
      %1 = "tfr.constant_tensor"(%0) : (!tfr.attr) -> !tfr.tensor
      func.return %1 : !tfr.tensor
    
    // CHECK-NEXT: %[[RES:.*]] = "tf.Const"() <{value = dense<[1, -1, 3]> : tensor<3xi64>}> : () -> tensor<3xi64>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

        else:
          return value, ty
    
      def _value_to_tensor(self, value, ty, node):
        value, ty = self._index_to_I64(value, ty)
        cst_tensor = self._ssa_name('cst')
        self.emit('\n{} = "tfr.constant_tensor"({})'.format(cst_tensor, value))
        self._emit_with_loc(' : ({}) -> !tfr.tensor'.format(ty), node)
        return cst_tensor, TFRTypes.TENSOR
    
      def _ssa_name(self, prefix):
        if isinstance(prefix, qual_names.QN):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
Back to top