Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 165 for computations (0.38 sec)

  1. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        output_dims.insert(output_dims.begin() + axis, depth);
    
        Location loc = op.getLoc();
    
        // The iota result is the effective output shape of the computation,
        // and indices must be broadcast into it. At this point, this computation
        // would need to be reworked quite a bit to support dynamic shapes, so
        // just using static broadcasting.
        auto index_type =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      let description = [{
    This operation holds a replicated output from a `tpu.replicate()` computation subgraph.
    Each replicated output has the same shape and type alongside the input.
    
    For example:
    ```
    %computation = "tf.Computation"()
    %replicated_output:2 = "tf.TPUReplicatedOutput"(%computation)
    ```
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  3. tensorflow/compiler/aot/compile.cc

      return true;
    }
    
    namespace {
    
    // Compiles the XLA computation into executable code.
    Status CompileXla(xla::CompileOnlyClient* client,
                      const xla::XlaComputation& computation,
                      const xla::cpu::CpuAotCompilationOptions& aot_opts,
                      CompileResult* compile_result) {
      // Retrieves arg and result layouts from the computation.
      // TODO(toddw): Should we let the user choose the major/minor ordering?
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 08:28:57 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/tf2xla_rewriter_test.cc

      xla::Tuple(&builder, tuple_values);
    
      TF_ASSERT_OK_AND_ASSIGN(XlaComputation computation, builder.Build());
      EXPECT_EQ(computation.proto().computations_size(), 2);
    
      TF_ASSERT_OK(CreateMlirModule());
      TF_ASSERT_OK_AND_ASSIGN(TupleOp root_tuple,
                              ImportXlaComputationIntoModule(computation));
      EXPECT_TRUE(root_tuple);
    
      int num_func_ops = 0;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_mlir.cc

          /*lower_to_xla_hlo=*/true, computation, metadata, device_type,
          shape_determination_fns, use_tuple_args, compilation_result,
          custom_legalization_passes, arg_shapes, arg_core_mapping,
          per_core_arg_shapes);
    
      if (mlir_bridge_status.ok()) {
        VLOG(1) << "Successfully compiled MLIR computation to XLA HLO using MLIR "
                   "tf2xla bridge";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo.cc

      LOG_FIRST_N(INFO, 1) << "Compiling MLIR computation to XLA HLO using the "
                              "Combined MLIR Tf2Xla Bridge.";
    
      absl::StatusOr<std::string> mlir_compilation =
          internal::CompileFromMlirToXlaHlo(
              /*lower_to_xla_hlo=*/false, computation, metadata, device_type,
              shape_determination_fns, use_tuple_args, compilation_result,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v1/compile_tf_graph.h

    namespace v1 {
    
    // Compiles the given Tensorflow graph into xla::HLO. The result is in
    // compilation_result. If the input computation is in MLIR, it will be
    // converted to a Tensorflow graph. Otherwise, the graph compiler will be run.
    absl::Status CompileTensorflowGraphToHlo(
        const std::variant<tpu::MlirToHloArgs, tpu::FunctionToHloArgs>& computation,
        const tpu::TPUCompileMetadataProto& metadata, bool use_tuple_args,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 08:08:57 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top