Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for tensor_list (0.2 sec)

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

              ssa_value, _ = value
              self.symbol_table.insert_symbol(key, ssa_value, t)
          elif len(values) == 1:
            name, tys = values[0]
            if ty == TFRTypes.TENSOR_LIST:
              # assign single tensor_list to multiple variables
              for idx, key in enumerate(targets):
                idx_name = self._ssa_name('idx')
                self._emit_with_loc(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir

      // CHECK: [[tensor_list:%.*]] = "tf.TensorListReserve"([[shape:%.*]], [[reserve_size:%.*]]) {
      %0 = "tf.TensorListReserve"(%cst_1, %cst_2) {device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<*xf32>>>
      // CHECK: [[map_fn_result:%.*]] = tf_mlrt.tf_map_fn([[reserve_size]], [[tensor_list]], %arg0)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 23 06:40:22 UTC 2024
    - 68.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

    // Returns a `llvm::DenseMap` which maps from the index of tensorlist in the
    // result, to the index of the same tensorlist in the arguments. For `If` op's
    // branch functions, the results and arguments are not usually matched 1-1. This
    // will let us konw which tensorlist result maps to which tensorlist in the
    // arguments. Once we know this info it will help us decide the types of the
    // result tensorlist based on the operand's of the `If` op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/g3doc/_includes/tf_passes.md

    _Replicate TensorList init ops for correct shape assignments in shape inference_
    
    If we pass same TensorList to a while op as multiple arguments or just use
    the same TensorList at multiple places and assign different
    TensorListSetItem to elements of TensorList, the shape inference is then
    unable to identify the Shape of these args and thus the input TensorList
    shape is unidentifiable.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Aug 02 02:26:39 UTC 2023
    - 96.4K bytes
    - Viewed (0)
  5. tensorflow/c/kernels_test.cc

      *tensor_proto = TensorProtoHelpers::GenerateTensorProto();
    
      CreateAndCallKernelWithAttr(my_create_func, "TestKernelAttrTensor", v);
    }
    
    TEST_F(TestKernelAttr, TensorList) {
      struct TensorProtoHelpers {
       public:
        static ::tensorflow::TensorProto GenerateTensorProto1() {
          ::tensorflow::TensorProto tensor_proto;
          tensor_proto.mutable_tensor_shape()->add_dim()->set_size(2);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 50.4K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td

          "return getElementTypeOrSelf(element_type());">;
    
      let extraClassDeclaration = [{
        // Returns type of the TensorList element produced by this op.
        TensorType element_type() { return handle_dtype().getSubtypes()[0]; }
    
        // Returns data type of the result handle. Returned type contains type of
        // the TensorList element as a subtype.
        VariantType handle_dtype() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 90.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

      LogicalResult matchAndRewrite(Operation *op,
                                    PatternRewriter &rewriter) const override {
        auto addn_op = cast<AddNOp>(op);
    
        // TODO(hinsu): Support variant with TensorList type. tf.AddV2 doesn't
        // support variant type so variant types require special handling.
        if (mlir::isa<VariantType>(getElementTypeOrSelf(addn_op.getType())))
          return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_test.cc

                                  TF_TString_GetSize(t_out_tstr)));
      TF_DeleteTensor(t_out);
      TF_TString_Dealloc(&tstr[0]);
    }
    
    TEST_F(CApiAttributesTest, TensorList) {
      const char tensor1[] = {5, 7};
      const int64_t dims1[] = {1, 2};
      const size_t ndims1 = TF_ARRAYSIZE(dims1);
    
      const char tensor2[] = {2, 4, 6, 8};
      const int64_t dims2[] = {2, 2};
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
Back to top