Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for XlaOpKernel (0.13 sec)

  1. tensorflow/compiler/aot/aot_only_var_handle_op.cc

    // same name. It is not safe to use this op in a JIT context.
    class XlaAotOnlyVarHandleOp : public XlaOpKernel {
     public:
      explicit XlaAotOnlyVarHandleOp(OpKernelConstruction* c);
      void Compile(XlaOpKernelContext* context) override;
    
     private:
      string name_;
    };
    
    XlaAotOnlyVarHandleOp::XlaAotOnlyVarHandleOp(OpKernelConstruction* c)
        : XlaOpKernel(c) {
      OP_REQUIRES_OK(c, c->GetAttr("shared_name", &name_));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 09:57:04 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

    namespace mlir {
    namespace mhlo {
    
    namespace {
    
    // Returns ops that should use MLIR legalization.
    // All other ops not in this list should use XlaOpKernel.
    const llvm::DenseSet<mlir::TypeID>& MlirAlwaysOps() {
      // The static variable is a pointer in order to avoid destruction upon thread
      // termination.
      static const llvm::DenseSet<mlir::TypeID>* ops = new llvm::DenseSet<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/xla_cluster_util.h

    // The attribute that marks certain inputs to a Node as required to be a
    // constant at compile time.  If this attribute is present then the
    // CompileTimeConstantInput information in the corresponding XlaOpKernel is
    // ignored.
    //
    // The value for this attribute, if present, has to be a list of strings naming
    // the inputs to the node that must be constant.
    extern const char* const kXlaCompileTimeConstantInputsAttr;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 09:53:30 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/compilability_check_util_test.cc

    constexpr char kUncompilableFunctionNodeTwoName[] = "n_d_uncompilable";
    
    // A dummy OpKernel for testing.
    class DummyCompilableOp : public XlaOpKernel {
     public:
      explicit DummyCompilableOp(OpKernelConstruction* ctx) : XlaOpKernel(ctx) {}
      void Compile(XlaOpKernelContext* ctx) override {
        ctx->SetOutput(0, ctx->Input(0));
      }
    };
    
    // Register the DummyCompilableOp kernel for CPU.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jun 10 12:32:39 UTC 2022
    - 22.3K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/compilability_check_util.h

        bool allow_control_trigger = false;
    
        // Whether it is okay to "cluster" Assert and CheckNumerics by simply
        // removing them (they're not removed during clustering, but their
        // XlaOpKernel is a no-op kernel).  We avoid auto-clustering these ops so
        // that the user is not surprised when XLA is implicitly enabled. If the
        // user explicitly specifies to use XLA, it is fine to resort to a dummy
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 14.9K bytes
    - Viewed (0)
Back to top