Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 50 for tensor_list (0.28 sec)

  1. 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)
  2. tensorflow/compiler/mlir/lite/flatbuffer_translate.cc

        llvm::cl::location(emit_custom_ops), llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    static opt<bool, true> lower_tensor_list_ops_flag(
        "lower-tensor-list-ops",
        llvm::cl::desc("Lower the TensorList ops within the TFLite dialect"),
        llvm::cl::location(lower_tensor_list_ops), llvm::cl::init(false));
    
    // NOLINTNEXTLINE
    static opt<bool, true> strip_debug_info_flag(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/passes.h

    // Creates a pass that adds control dependencies to keep the relative execution
    // order of operations with side effects frozen.
    std::unique_ptr<OperationPass<func::FuncOp>> CreatePinOpsWithSideEffectsPass();
    
    // Legalize TensorList Ops iff all of them are supported.
    std::unique_ptr<OperationPass<ModuleOp>> CreateLegalizeTensorListPass();
    
    // Reduce the type precision of some tensor types if all values within that
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 07 21:29:34 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

                    .getDimSize(1),
                3);
    
      auto it = fused_lstm_func_.getBody().back().rbegin();
      EXPECT_EQ(it->getName().getStringRef(),
                mlir::func::ReturnOp::getOperationName());
      it++;  // tensor_cast
      it++;  // lstm
      EXPECT_EQ(it->getName().getStringRef(),
                mlir::TFL::LSTMOp::getOperationName());
      EXPECT_EQ(it->getNumOperands(), 24);
      EXPECT_EQ(it->getNumResults(), 1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/lower-static-tensor-list.mlir

    // RUN: tf-opt "-tfl-lower-static-tensor-list=allow-tensorlist-pass-through default-to-single-batch" -split-input-file %s | FileCheck %s
    
    // -----
    
    // CHECK-LABEL: tensorlistConst
    func.func @tensorlistConst(%arg0 : tensor<1xi32>) -> tensor<2x3xi32> {
      // CHECK-DAG: %[[ELEMENT0:.*]] = "tf.Const"() <{value = dense<[0, 1, 2]> : tensor<3xi32>}> : () -> tensor<3xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 39.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/xla_launch_util.cc

      }
    
      for (const XlaOutputDescription& descr : compilation_result->outputs) {
        if (descr.type == DT_VARIANT) {
          return errors::Unimplemented(
              "Support for TensorList crossing the XLA/TF boundary "
              "is not implemented");
        }
      }
    
      std::vector<TensorShape> output_tensor_shapes;
      output_tensor_shapes.reserve(ctx->num_outputs());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/tape.h

        const int64_t id = target_tensor_ids[i];
        if (output_gradients.empty() || output_gradients[i] == nullptr) {
          auto tensor_it = tensor_tape.find(id);
          if (tensor_it != tensor_tape.end() && tensor_it->second != -1) {
            auto op_it = op_tape.find(tensor_it->second);
            if (op_it == op_tape.end()) {
              return errors::Internal(
                  "Internal state of the gradient tape is invalid: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 02 12:40:29 UTC 2024
    - 47.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/lstm_utils.cc

          func_output_shape,
          mlir::cast<RankedTensorType>(input_.getType()).getElementType());
    
      auto tensor_cast = builder_.create<mlir::tensor::CastOp>(
          fused_func_op_.getLoc(), func_result_type, lstm_.getResult());
      builder_.create<mlir::func::ReturnOp>(fused_func_op_.getLoc(),
                                            tensor_cast.getResult());
      return success();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc

        }
        operands.push_back(val);
      }
      return builder->create<func::CallOp>(loc, fn, operands).getOperation();
    }
    
    // Prepares for jump to the given block by introducing necessary tensor_cast
    // operations and returning Values of types required by the block.
    //
    // Requires the function to provide values for each of the block arguments and
    // they should be pair-wise compatible for tensor cast.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 13 11:42:59 UTC 2023
    - 12.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/mark_ops_for_outside_compilation.cc

          mlir::TF::RecvTPUEmbeddingActivationsOp::getOperationName(), context));
      supported_ops->insert(OperationName(
          mlir::TF::SendTPUEmbeddingGradientsOp::getOperationName(), context));
    }
    
    // Stack, TensorList and TensorArray ops are rewritten during the second phase
    // of the bridge (compilation of TPUCompile op). They would not match any
    // legalization/canonicalization pattern and have to be manually added to the
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top