Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for XlaComputationLaunchContext (0.23 sec)

  1. tensorflow/compiler/jit/kernels/xla_ops.cc

    se::Stream* GetStream(OpKernelContext* ctx) {
      return ctx->op_device_context() ? ctx->op_device_context()->stream()
                                      : nullptr;
    }
    
    XlaComputationLaunchContext GetLaunchContext(
        const XlaPlatformInfo& platform_info, OpKernelContext* ctx,
        xla::LocalClient* client, se::DeviceMemoryAllocator* allocator) {
      se::Stream* stream = GetStream(ctx);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 22:46:36 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/xla_launch_util.cc

          })) {
        return errors::Internal("Unexpected device placement for a constant input");
      }
      return constant_input_indices;
    }
    
    XlaComputationLaunchContext::XlaComputationLaunchContext(
        xla::LocalClient* client, se::DeviceMemoryAllocator* xla_allocator,
        int device_ordinal, bool allocate_xla_tensors, bool use_multiple_streams)
        : client_(client),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 00:36:08 UTC 2024
    - 40.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_compile_on_demand_op.cc

                                                    variable_indices, variables));
      TF_RETURN_IF_ERROR(LockVariables(absl::MakeSpan(*variables)));
      TF_ASSIGN_OR_RETURN(*args,
                          XlaComputationLaunchContext::BuildXlaCompilerArguments(
                              constant_indices, inputs, *variables,
                              static_cast<Device*>(ctx.device())));
      return absl::OkStatus();
    }
    }  // namespace
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 29 08:39:39 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_launch_util.h

        xla::PjRtLoadedExecutable* executable);
    
    // Helper class to perform the marshalling of TensorFlow inputs and outputs to
    // ShapedBuffers suitable for passing to an XLA computation.
    class XlaComputationLaunchContext {
     public:
      // Create a new launch context. 'allocate_xla_tensors' is true if allocated
      // output tensors and variables are always XlaTensors. If false they are
      // assumed to be "normal" device pointers.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/xla_launch_util_test.cc

      TF_ASSERT_OK(LockVariables(absl::MakeSpan(variables)));
      TF_ASSERT_OK_AND_ASSIGN(
          std::vector<XlaCompiler::Argument> args,
          XlaComputationLaunchContext::BuildXlaCompilerArguments(
              constant_input_indices, inputs, variables,
              static_cast<Device*>(context_->device())));
    
      const XlaCompiler::CompilationResult* result;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/get_compiler_ir.cc

                                                      input_arg_shape_and_dtype);
      } else if (compiler_arg_source == CompilerArgSource::CONCRETE_INPUT) {
        args = XlaComputationLaunchContext::BuildXlaCompilerArguments(
            constant_arg_indices, inputs, variable_infos, dev);
      }
      return args;
    }
    
    absl::StatusOr<std::string> CompileAndBuildHLOString(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 19K bytes
    - Viewed (0)
Back to top