Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for tensor_list (0.28 sec)

  1. tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py

          CHECK:       }
    
          CHECK-LABEL: tfr.func @tf__test_identity_n_op(%x: !tfr.tensor_list) -> (!tfr.tensor_list) {
          CHECK-NEXT:   %[[raw_data:.*]] = tfr.quant_raw_data(%x) : (!tfr.tensor_list) -> (!tfr.tensor_list)
          CHECK:        tfr.return %[[raw_data:.*]] : !tfr.tensor_list
          CHECK:       }
        """
        self._check_code(mlir_code, mlir_code_exp)
    
    
    if __name__ == '__main__':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Oct 13 16:33:28 UTC 2021
    - 28.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/tests/ops.mlir

    }
    
    // -----
    
    // expected-error@+1 {{More than one tfr.tensor_list result isn't allowed}}
    tfr.func @Foo_multiple_tensor_list_results(%arg0: !tfr.tensor<C>,
                  %arg1: !tfr.tensor_list<A>,
                  %arg2: i32 {tfr.name = "A"},
                  %arg3: vector<1xi32> {tfr.name = "C"}) ->
        (!tfr.tensor_list<A>, !tfr.tensor_list<A>) {
    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/ir/tfr_ops.td

        Example:
    
        ```mlir
        %2 = tfr.call @my_add(%0, %1) : (tfr.tensor, f32) -> tfr.tensor_list
        ```
    
        Note that the operands of the `call` operation can only be with tfr.tensor,
        tfr.tensor_list, tfr.attr and mlir float and integer types. The results of
        the `call` operation can only be with tfr.tensor and tfr.tensor_list types.
      }];
    
      let arguments = (ins
        FlatSymbolRefAttr:$callee,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/tests/decompose.mlir

    }
    
    // CHECK-LABEL: @tf__fused_n
    tfr.func @tf__fused_n(
        %arg0: !tfr.tensor,
        %arg1: !tfr.tensor_list,
        %arg2: index {tfr.name="A",tfr.default=1:index})
      -> !tfr.tensor_list {
      %0 = tfr.call @tf__intermediate(%arg0) : (!tfr.tensor) -> !tfr.tensor
      %1 = tfr.get_element %arg1[%arg2] : (!tfr.tensor_list, index) -> !tfr.tensor
      %2 = tfr.call @tf__intermediate(%1) : (!tfr.tensor) -> !tfr.tensor
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 16.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tfr/tests/canonicalize.mlir

      %5 = "tfr.build_list"(%3, %4) : (!tfr.tensor, !tfr.tensor) -> !tfr.tensor_list
      %6 = tfr.quant_raw_data(%5) : (!tfr.tensor_list) -> !tfr.tensor_list
      %7 = "tfr.cast"(%cst_1) : (tensor<i64>) -> !tfr.tensor
      %8 = tfr.call @tf__concat(%7, %6) : (!tfr.tensor, !tfr.tensor_list) -> !tfr.tensor
      func.return %8 : !tfr.tensor
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/tests/end2end.mlir

      tfr.return %0 : !tfr.tensor
    }
    
    tfr.func @tf__my_pack(%values: !tfr.tensor_list,
                          %n: i32 {tfr.name="N"},
                          %axis: i32 {tfr.name="axis"}) -> !tfr.tensor {
      %index = arith.constant 0 : index
      %cst = arith.constant 1 : i32
      %eq = arith.cmpi eq, %n, %cst : i32
      %v1 = tfr.get_element %values[%index] : (!tfr.tensor_list, index) -> !tfr.tensor
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 13.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

          input_used_attrs.append(used.begin(), used.end());
          continue;
        }
    
        if (auto tensor_list = arg_type.dyn_cast<TFRTensorListType>()) {
          if (first_tensor_list == -1) {
            first_tensor_list = arg.index();
          }
          last_tensor_list = arg.index();
          auto used = tensor_list.getAttrKeys();
          input_used_attrs.append(used.begin(), used.end());
          continue;
        }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfr/passes/decompose.cc

        // Create the new operands. This is mapping the operands from the target
        // TF ops to the TFR function arguments. If the TFR function argument is
        // a tensor_list, a "tfr.build_list" op is used to concat the available
        // TF op operands. If the TFR function argument isn't a tensor/tensor_list,
        // a constant is created by using the attribute stored in the TF op or the
        // default value in the argument attribute.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

          SmallVector<Value, 4> tensor_list;
          for (int i = res.index(); i < new_op->getNumResults(); i++) {
            Value new_res = new_op->getResult(i);
            auto casted =
                rewriter.create<CastOp>(loc, unconstrainted_type, new_res);
            tensor_list.push_back(casted.getOut());
          }
          auto list_op = rewriter.create<BuildListOp>(loc, res_type, tensor_list);
          new_results.push_back(list_op.getOut());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc

          output << " input_index=" << xla_output_description.input_index;
        if (xla_output_description.is_constant) output << " constant";
        if (xla_output_description.is_tensor_list) output << " tensor_list";
        output << '\n';
      }
    
      for (const auto& resource_update : compilation_result.resource_updates) {
        output << "// ResourceUpdate input_index=" << resource_update.input_index
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 18.8K bytes
    - Viewed (0)
Back to top