Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 43 for TFRT (0.05 sec)

  1. tensorflow/compiler/jit/xla_device.h

    #include "tensorflow/core/framework/types.h"
    #include "tensorflow/core/lib/core/status.h"
    #include "tensorflow/core/platform/mutex.h"
    #include "tensorflow/core/platform/stream_executor_no_cuda.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    
    namespace tensorflow {
    
    class XlaDevice : public LocalDevice {
     public:
      // Given a tensor, sets `xla::Shape*` the shape of tensor's representation
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/cluster_ops_by_policy.h

    // Cluster groups together operations in the single basic block based on the
    // given clustering policy set. Clusters can be outlined into nested modules
    // later device specific compilation (e.g. for TFRT JIT compiler).
    struct Cluster {
      llvm::SmallVector<Operation*> operations;
      ValuesConstraintSet constraints;
    };
    
    // Returns clusters of operations in the given `block` based on the provided
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 03 03:47:00 UTC 2023
    - 12.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/get_compiler_ir.cc

        return stage == IrExportStage::HLO ||
               stage == IrExportStage::HLO_NO_METADATA ||
               stage == IrExportStage::HLO_SERIALIZED;
      };
      // TODO(b/238830423): support GetCompilerIr on TFRT TPU device for stages
      // that requires compilation from HLO to executable.
      if (device_type != DEVICE_CPU && stream == nullptr &&
          !is_tfrt_tpu_supported_stage(stage)) {
        return absl::InternalError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfrt/tests/mlrt/parallelization.mlir

    // RUN: tf-tfrt-opt -split-input-file -tf-mlrt-parallelization %s | FileCheck %s --dump-input=fail --dump-input-filter=all
    
    // CHECK-LABEL: func private @main_stream_{{[0-9]*}}
    // CHECK-SAME: ({{%.*}}: tensor<i32>, [[PROMISE:%.*]]: !mlrt.promise)
    // CHECK: tf.Sub
    // CHECK: tf.Sub
    // CHECK: tf.Sub
    // CHECK: [[RES:%.*]] = "tf.Sub"
    // CHECK: "tf_mlrt.tf_promise"([[PROMISE]], [[RES]])
    // CHECK: return
    
    // CHECK-LABEL: func @main
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 08 22:07:30 UTC 2023
    - 15K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_device.cc

    #include "tensorflow/core/platform/stream_executor_no_cuda.h"
    #include "tensorflow/core/profiler/lib/traceme.h"
    #include "tensorflow/core/public/session_options.h"
    #include "tensorflow/core/public/version.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/util/device_name_utils.h"
    #include "tensorflow/core/util/dump_graph.h"
    #include "tensorflow/core/util/stream_executor_util.h"
    
    namespace tensorflow {
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 21:05:42 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

      if (TF_GetCode(status) != TF_OK) return;
    
      // unwrap op_ and set step_id only if valid step id value was set.
      // Currently only required for non-TFRT use cases, e.g., EagerOp.
      if (step_id_.has_value()) {
        tensorflow::unwrap(op_.get())->SetStepId(step_id_.value());
      }
    
      TFE_Execute(op_.get(), unwrapped_results.data(), &real_num_outputs, status);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 07:47:20 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfrt/tests/mlrt/tf_to_mlrt.mlir

    // RUN: tf-tfrt-opt -split-input-file -tf-to-mlrt %s | FileCheck %s
    
    // CHECK-LABEL: @main_stream_0
    // CHECK-SAME: ([[input0:%.*]]: !tf_mlrt.tensor, [[promise_b:%.*]]: !mlrt.promise)
    func.func @main_stream_0(%input0: tensor<i32>, %promise_b: !mlrt.promise) {
      %const = "tf.Const"() {__op_key = 0 : i32, value = dense<1> : tensor<i32>} : () -> tensor<i32>
      // CHECK: [[a:%.*]] = tf_mlrt.executeop([[input0]],
      // CHECK-SAME: AddV2
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 20:44:15 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tfrt/tests/mlrt/async_while.mlir

    // RUN: tf-tfrt-opt -split-input-file -tf-mlrt-async-while %s | FileCheck %s
    
    // This is a simple case that should be pipelined.
    
    // CHECK-LABEL: func.func private @"map/while_cond"
    func.func private @"map/while_cond"(%loop_count: tensor<i32>, %max_iterations: tensor<i32>, %handle: tensor<?x!tf_type.resource>, %flow_in: tensor<*xf32>, %matrix: tensor<3x3xf32>) -> tensor<i1> {
      %0 = "tf.Less"(%loop_count, %max_iterations) : (tensor<i32>, tensor<i32>) -> tensor<i1>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 22.2K bytes
    - Viewed (0)
  9. tensorflow/cc/experimental/libtf/object.h

    /// derived from the `Handle` class. Instances of `Handle` are referred to as
    /// "handles". All handles have a tagged value.
    ///
    /// Example Usage:
    /// Object runtime = GetRuntime("tfrt");
    /// Object module = runtime.Get("Import")("cool_mobilenet")
    /// runtime.Get("Tensor")(Tuple(5,5,5), 3.3);
    /// Object test = CreateModule("test");
    /// test.Set("cool_function", callable);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 11 08:05:36 UTC 2023
    - 23.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/xla_launch_util.cc

    #include "tensorflow/core/lib/core/refcount.h"
    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/platform/statusor.h"
    #include "tensorflow/core/tfrt/common/async_value_tensor.h"
    #include "tensorflow/core/util/stream_executor_util.h"
    #include "tsl/framework/device_id_utils.h"
    #include "tsl/framework/serving_device_selector_policies.h"
    #include "tsl/platform/status.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
Back to top