Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for _input_hostmem (0.13 sec)

  1. tensorflow/compiler/jit/force_xla_constants_on_host_pass.h

    #include "tensorflow/core/common_runtime/optimization_registry.h"
    
    namespace tensorflow {
    
    // An optimization pass which marks the constants which have to be resolved for
    // XLA compilation with `_input_hostmem`.
    class ForceXlaConstantsOnHostPass : public GraphOptimizationPass {
     public:
      ForceXlaConstantsOnHostPass() = default;
    
      Status Run(const GraphOptimizationPassOptions& options) override;
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 01 18:34:32 UTC 2020
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/force_xla_constants_on_host_pass.cc

              flr, function, &fbody, &constant_arg_indices, &resource_arg_indices));
          VLOG(3) << "Found constant arg indices: "
                  << absl::StrJoin(constant_arg_indices, ", ");
    
          node->AddAttr("_input_hostmem", constant_arg_indices);
        }
      }
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/force_xla_constants_on_host_pass_test.cc

      for (Node* node : graph->nodes()) {
        if (CanCreateXlaKernel(node->def())) {
          EXPECT_FALSE(found);
          found = true;
          std::vector<int32> hostmem_attr;
          EXPECT_TRUE(TryGetNodeAttr(node->def(), "_input_hostmem", &hostmem_attr));
          EXPECT_EQ(hostmem_attr.size(), 1);
          EXPECT_EQ(hostmem_attr[0], 1);
        }
      }
      EXPECT_TRUE(found);
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top