Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsConstant (0.29 sec)

  1. tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc

          auto def_op = operand.getDefiningOp();
          if (consumed_ops.contains(def_op)) continue;
          queue.push_back(def_op);
          consumed_ops.insert(def_op);
        }
      }
    }
    
    inline bool IsConstant(Operation *op) { return matchPattern(op, m_Constant()); }
    
    bool AllOperationSafe(Block &block) {
      auto walk_result = block.walk([&](Operation *op) {
        // op has SideEffect.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/asm/ClassDependenciesVisitor.java

            return (access & Opcodes.ACC_PRIVATE) == 0;
        }
    
        private static boolean isAccessibleConstant(int access, Object value) {
            return isConstant(access) && isAccessible(access) && value != null;
        }
    
        private static boolean isConstant(int access) {
            return (access & Opcodes.ACC_FINAL) != 0 && (access & Opcodes.ACC_STATIC) != 0;
        }
    
        public String getDependencyToAllReason() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 27 13:49:15 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/partially_decluster_pass.cc

        // encounter F1, decluster it and so on.
        if (node_on_cluster_edge) {
          bool must_compile_node;
          TF_RETURN_IF_ERROR(MustCompileNode(n, &must_compile_node));
          if (!must_compile_node) {
            if (n->IsConstant()) {
              // We must decluster Const nodes that have an input control edge from
              // a different device, because this node may be part of the
              // co-ordination of while loops between devices.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 11:36:41 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc

      if (!slice_size_has_error) {
        return false;
      }
    
      // No point in rewriting slices that have both size and begin as constants.
      return !slice_inputs->begin.node()->IsConstant();
    }
    
    Status FindAndRewriteSlices(Graph* g, bool* changed) {
      std::vector<Node*> slices_to_rewrite;
      for (Node* n : g->nodes()) {
        TF_ASSIGN_OR_RETURN(bool is_rewritable, ShouldRewriteSlice(n));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 13.8K bytes
    - Viewed (0)
Back to top