Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 257 for computations (0.91 sec)

  1. tensorflow/compiler/aot/codegen_test_h.golden

    namespace foo {
    namespace bar {
    
    // MyClass represents a computation previously specified in a
    // TensorFlow graph, now compiled into executable code. This extends the generic
    // XlaCompiledCpuFunction class with statically type-safe arg and result
    // methods. Usage example:
    //
    //   MyClass computation;
    //   // ...set args using computation.argN methods
    //   CHECK(computation.Run());
    //   // ...inspect results using computation.resultN methods
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.cc

      }
    
      if (output_to_input_alias.empty()) return absl::OkStatus();
    
      xla::HloModuleProto* module_proto =
          compilation_result->computation->mutable_proto();
      absl::StatusOr<xla::ProgramShape> program_shape_or_status =
          compilation_result->computation->GetProgramShape();
      TF_RET_CHECK(program_shape_or_status.ok());
    
      xla::ProgramShape& program_shape = program_shape_or_status.value();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 22:19:26 UTC 2024
    - 14K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_host_computation_expansion.cc

      return llvm::isa<TF::CastOp, TF::IdentityOp>(op);
    }
    
    // Adds outside compilation attributes to unary ops such as Identity/Cast ops
    // at the head of TPU computation that is used only by other outside compiled
    // ops. Identity ops and Cast ops is commonly added to the start of TPU
    // computation. Adding/expanding outside compilation attributes to these ops
    // will ensure that head outside compiled ops are correctly located and moved to
    // host.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/device_executable_persistor.h

        DeviceCompilerClient<ExecutableType, ClientType>* compiler_client) const {
      XlaSerializedCacheEntry serialized_entry;
      const xla::HloModuleProto& hlo_module =
          compilation_result.computation->proto();
      *serialized_entry.mutable_key() =
          BuildSerializedCacheKey(signature_hash, hlo_module);
      *serialized_entry.mutable_hlo_module() = hlo_module;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/passes/extract_head_tail_outside_compilation.cc

    }
    
    // Returns a set of ops that are outside compiled and can be extracted to before
    // the TPU computation. These ops are either connected to the inputs of the TPU
    // computation or other ops that can be extracted, and have no operands from
    // other ops in the TPU computation that cannot be extracted.
    llvm::SmallVector<Operation*, 4> FindOutsideCompiledOpsAtHead(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.h

    // then those passes include all the Legalization to XLA HLO which is returned
    // in the compilation_result.
    absl::StatusOr<std::string> CompileFromMlirToXlaHlo(
        bool lower_to_xla_hlo, const tpu::MlirToHloArgs& computation,
        const tpu::TPUCompileMetadataProto& metadata, llvm::StringRef device_type,
        const XlaShapeLayoutHelpers::ShapeDeterminationFns& shape_determination_fns,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/tpu_rewrite.mlir

        %add_result = "tf.Add"(%computation, %computation) : (tensor<i32>, tensor<i32>) -> tensor<i32>
        // expected-error@+1 {{Input of TPUPartitionedOutputV2 must be in tpu computation.}}
        %partitioned_output:2 = "tf.TPUPartitionedOutputV2"(%add_result) {N = 2 : i64, partition_dims = []} : (tensor<i32>) -> (tensor<i32>, tensor<i32>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 22:03:30 UTC 2024
    - 172.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/xla_device_compiler_client.cc

      xla::ExecutableBuildOptions build_options = GetExecutableBuildOptions(
          options, result, client_->default_device_ordinal());
      TF_ASSIGN_OR_RETURN(
          auto executables,
          client_->Compile(*result.computation, argument_layouts, build_options));
      TF_RET_CHECK(executables.size() == 1);
      return std::move(executables[0]);
    }
    
    absl::StatusOr<std::string> XlaDeviceCompilerClient::SerializeExecutable(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/api/v2/legalize_tf.h

    namespace tf2xla {
    namespace v2 {
    
    // Legalizes the given mlir::Module into XLA HLO. If successful, returns the
    // compiled XLA HLO. V1 of the tf2xla uses MLIR whereas V0 does not use MLIR.
    //
    // Inputs:
    //  computation - The MLIR module op. It currently takes in
    //  tpu::FunctionToHloArgs but this is deprecated. arg_shapes - The shapes of
    //  the arguments in module_op. device_type - The device type to compile for.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 07:32:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/passes/clustering_passes.h

    CreateTPUClusterFormationPass(bool strict_clusters = false);
    
    // Creates a pass that extracts outside compilation (Host ops inside device
    // cluster) at head/tail of Device cluster to run before/after XLA computation.
    std::unique_ptr<mlir::OperationPass<mlir::ModuleOp>>
    CreateExtractHeadTailOutsideCompilationPass();
    
    // Creates a pass that extract outside compilation (Host ops inside cevice
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 02:01:13 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top