Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 78 for tpu0 (0.06 sec)

  1. tensorflow/compiler/jit/encapsulate_xla_computations_pass_test.cc

      return graph;
    }
    
    TEST(EncapsulateXlaComputations, DeterministicEncapsulate) {
      // Test that control edge insertion order doesn't affect the cache key
      // (cluster name) generated by TPU encapsulate pass.
      auto get_serialized_graph = [](bool control_input_reversed,
                                     bool operand_reversed) -> string {
        FunctionLibraryDefinition flib_def(OpRegistry::Global(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 16 18:03:15 UTC 2023
    - 14.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tpu_reorder_replicate_and_partitioned_inputs.mlir

    // RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-reorder-replicate-partitioned-inputs | FileCheck %s
    
    // CHECK-LABEL:func @simple
    // CHECK-SAME: ([[ARG0:%.*]]: tensor<!tf_type.resource<tensor<10x3xf32>>>, [[ARG1:%.*]]: tensor<!tf_type.resource<tensor<10x3xf32>>>, [[ARG2:%.*]]: tensor<!tf_type.resource<tensor<10x3xf32>>>, [[ARG3:%.*]]: tensor<!tf_type.resource<tensor<10x3xf32>>>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 24 23:08:55 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_launch_util.cc

        // when the producer is a non-XLA TF GPU kernel or function (e.g.
        // tf.matmul).
        //
        // 3. AsyncValueTensor, containing a PjRtBuffer. This is the legacy mode
        // and certain device type (e.g. TPU) still uses this path.
        AsyncValueTensor* av_tensor = AsyncValueTensor::FromTensor(tensor);
        if (use_pjrt_tensor_buffer) {
          if (av_tensor != nullptr) {
            return absl::InvalidArgumentError(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  4. 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)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/duplicate_shape_determining_constants.cc

    // call tree upwards and duplicates all constants found in the subtree in a
    // similar manner.
    //
    // This pass may be used to avoid placing shape-determining constants in the CPU
    // graph and pass them as arguments to the TPU graph (via `TPUPartitionedCall`).
    // If this happens, the XLA compiler cannot recognize such arguments as
    // constants and may result in an error.
    //
    // A set of predefined ops and operand indices is used to determine whether an
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/tests/tpu_resource_partitioning.mlir

    // RUN: tf-opt %s -split-input-file -verify-diagnostics -tf-tpu-resource-partition | FileCheck %s
    
    func.func private @computation(%arg0: tensor<i32>) -> tensor<i32>
    
    // CHECK-LABEL: func @read_write_resource
    // CHECK-SAME: ([[ARG0:%.+]]: tensor<!tf_type.resource<tensor<i32>>>, [[ARG1:%.+]]: tensor<!tf_type.resource<tensor<i32>>>)
    func.func @read_write_resource(%arg0: tensor<!tf_type.resource<tensor<i32>>>, %arg1: tensor<!tf_type.resource<tensor<i32>>>) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 23:53:20 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device.cc

        const TFE_OpAttrs* attributes, int expected_max_outputs,
        TF_Status* status) {
      absl::optional<std::vector<MaybeParallelTensorOwned>> result;
      // TODO(allenl): We should remove "TPU" from these op names at the very least,
      // or consider other ways of packing/unpacking parallel tensors.
      if (operation_name == std::string("TPUReplicatedInput")) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 29 22:05:31 UTC 2023
    - 18.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

    #include "tensorflow/core/platform/errors.h"
    #include "tensorflow/core/platform/logging.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/protobuf/core_platform_payloads.pb.h"
    #include "tensorflow/core/tpu/tpu_defs.h"
    #include "tensorflow/core/util/debug_data_dumper.h"
    #include "tsl/platform/errors.h"
    
    namespace tensorflow {
    namespace {
    constexpr absl::string_view kGroupSizeAttrName =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tfrt/tests/hoist_invariant_ops.mlir

      func.return  %1 : tensor<*xf32>
    
    }
    
    }
    
    // -----
    
    module attributes {tf_saved_model.semantics} {
    
    // Test not hoisting in TPU functions.
    
    // CHECK-LABEL: func @_tfrt_resource_init
    // CHECK-NEXT: return
    
    // CHECK-LABEL: func private @func2
    func.func private @func2(%arg: tensor<i1>) -> tensor<i32> {
      // CHECK-NOT: tf._TfrtGetResource
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 01 23:54:14 UTC 2024
    - 18.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/replace_stablehlo_ops_in_main_function_with_xla_call_module_ops.cc

    // Default version number for native serialization.
    constexpr int64_t kDefaultVersion = 9;
    // Platforms for XlaCallModuleOp.
    constexpr StringRef kPlatformCpu = "CPU";
    constexpr StringRef kPlatformTpu = "TPU";
    
    class ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPass
        : public impl::
              ReplaceStablehloOpsInMainFunctionWithXlaCallModuleOpsPassBase<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21K bytes
    - Viewed (0)
Back to top