Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for IsConstant (0.13 sec)

  1. tensorflow/cc/ops/const_op_test.cc

    namespace tensorflow {
    
    namespace {
    
    template <typename T>
    void ExpectNodeEqual(const Node* n, gtl::ArraySlice<T> values,
                         TensorShape shape) {
      EXPECT_TRUE(n->IsConstant());
      Tensor tensor;
      TF_EXPECT_OK(GetNodeAttr(n->attrs(), "value", &tensor));
      DataType dtype;
      TF_EXPECT_OK(GetNodeAttr(n->attrs(), "dtype", &dtype));
      EXPECT_EQ(tensor.dtype(), dtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Aug 12 14:38:21 UTC 2019
    - 4.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/deadness_analysis_test.cc

          root.WithOpName("capture_enter_outer"), captured, "outer_loop",
          ops::internal::Enter::Attrs().IsConstant(true));
      Output capture_enter_inner = ops::internal::Enter(
          root.WithOpName("capture_enter_inner"), capture_enter_outer, "inner_loop",
          ops::internal::Enter::Attrs().IsConstant(true));
      Output mul0 = ops::Mul(root.WithOpName("mul0"), div1_inner.induction_var,
                             capture_enter_inner);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/aot/embedded_protocol_buffers.cc

                                             /*AddNull=*/false);
      new llvm::GlobalVariable(
          *module, protobuf_array_initializer->getType(),
          /*isConstant=*/true, llvm::GlobalValue::ExternalLinkage,
          protobuf_array_initializer, AsStringRef(*protobuf_array_symbol_name));
    }
    
    static string CreateCPPShimExpression(
        absl::string_view qualified_cpp_protobuf_name,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Feb 26 00:48:41 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. 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)
  6. tensorflow/compiler/jit/clone_constants_for_better_clustering.cc

      return total_elements < kSmallTensorThreshold;
    }
    
    // We only clone small constants since we want to avoid increasing memory
    // pressure on GPUs.
    absl::StatusOr<bool> IsSmallConstant(Node* n) {
      if (!n->IsConstant()) {
        return false;
      }
    
      return IsConstantSmall(n);
    }
    
    bool IsInPlaceOp(absl::string_view op_name) {
      return op_name == "InplaceUpdate" || op_name == "InplaceAdd" ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/node_matchers_test.cc

      Output enter = ops::internal::Enter(
          root.WithOpName("enter"),
          ops::Placeholder(root.WithOpName("data"), DT_FLOAT), "frame_name",
          ops::internal::Enter::Attrs{}.IsConstant(true));
      EXPECT_THAT(enter.node(), NodeWith(Attr("is_constant", true)));
      EXPECT_EQ(Explain(enter.node(), NodeWith(Attr("is_constant", false))),
                "attribute named is_constant does not match value; expected: "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

        return false;
      }
    
      Node* const_input = nullptr;
      for (const Edge* e : n->in_edges()) {
        if (!e->IsControlEdge() && e->src()->IsConstant()) {
          const_input = e->src();
          break;
        }
      }
    
      if (!const_input) {
        return false;
      }
    
      const TensorProto* proto = nullptr;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top