- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 24 for NEG (1.23 sec)
-
tensorflow/c/c_api_function_test.cc
TF_Operation* feed = Placeholder(func_graph_, s_, "negation"); TF_Operation* neg = Neg(feed, func_graph_, s_, "neg"); Define(-1, {}, {feed}, {neg}, {"negation"}); // Use, run, and verify TF_Operation* func_feed = Placeholder(host_graph_, s_); TF_Operation* func_op = Use({func_feed}); Run({{func_feed, Int32Tensor(3)}}, func_op, -3); VerifyFDef({"neg"}, {{"negation_0", DT_INT32}}, {{"negation", DT_INT32}},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 20 22:08:54 UTC 2023 - 63.6K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
// Add another oper to the graph. TF_Operation* neg = Neg(add, graph, s, "neg"); ASSERT_EQ(TF_OK, TF_GetCode(s)) << TF_Message(s); NodeDef node_def_neg; ASSERT_TRUE(GetNodeDef(neg, &node_def_neg)); EXPECT_EQ(string("add"), node_def_neg.input(0)); // update edge of neg TF_UpdateEdge(graph, TF_Output{one, 0}, TF_Input{neg, 0}, s); ASSERT_TRUE(GetNodeDef(neg, &node_def_neg));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad.cc
const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { // dx = -dy; grad_outputs->push_back(Neg(scope, grad_inputs[0])); return scope.status(); } REGISTER_GRADIENT_OP("Neg", NegGrad); Status InvGrad(const Scope& scope, const Operation& op, const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 50.7K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/PPC64.rules
(SUBFCconst [c] (NEG x)) => (ADDconst [c] x) (SUBFCconst [c] (SUBFCconst [d] x)) && is32Bit(c-d) => (ADDconst [c-d] x) (SUBFCconst [0] x) => (NEG x) (ADDconst [c] (SUBFCconst [d] x)) && is32Bit(c+d) => (SUBFCconst [c+d] x) (NEG (ADDconst [c] x)) && is32Bit(-c) => (SUBFCconst [-c] x) (NEG (SUBFCconst [c] x)) && is32Bit(-c) => (ADDconst [-c] x) (NEG (SUB x y)) => (SUB y x) (NEG (NEG x)) => x
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 53.2K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/AMD64.rules
// rotate left negative = rotate right (ROLQ x (NEG(Q|L) y)) => (RORQ x y) (ROLL x (NEG(Q|L) y)) => (RORL x y) (ROLW x (NEG(Q|L) y)) => (RORW x y) (ROLB x (NEG(Q|L) y)) => (RORB x y) // rotate right negative = rotate left (RORQ x (NEG(Q|L) y)) => (ROLQ x y) (RORL x (NEG(Q|L) y)) => (ROLL x y) (RORW x (NEG(Q|L) y)) => (ROLW x y) (RORB x (NEG(Q|L) y)) => (ROLB x y) // rotate by constants
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 19:38:41 UTC 2024 - 93.9K bytes - Viewed (0) -
tensorflow/compiler/jit/mark_for_compilation_pass_test.cc
PartialTensorShape{}, DT_FLOAT); Output read = ops::Identity(root.WithOpName("read"), variable); Output neg = ops::Negate(root.WithOpName("negate"), read); Output add = ops::Add(root.WithOpName("add"), neg, neg); std::unique_ptr<Graph> graph(new Graph(OpRegistry::Global())); TF_ASSERT_OK(root.ToGraph(graph.get()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 14 10:11:10 UTC 2024 - 79.6K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/_gen/S390X.rules
// generic simplifications // TODO: more of this (ADD x (NEG y)) => (SUB x y) (ADDW x (NEGW y)) => (SUBW x y) (SUB x x) => (MOVDconst [0]) (SUBW x x) => (MOVDconst [0]) (AND x x) => x (ANDW x x) => x (OR x x) => x (ORW x x) => x (XOR x x) => (MOVDconst [0]) (XORW x x) => (MOVDconst [0]) (NEG (ADDconst [c] (NEG x))) && c != -(1<<31) => (ADDconst [-c] x)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 12 18:09:26 UTC 2023 - 74.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 21:48:10 UTC 2024 - 49.4K bytes - Viewed (0) -
src/time/format.go
func atoi[bytes []byte | string](s bytes) (x int, err error) { neg := false if len(s) > 0 && (s[0] == '-' || s[0] == '+') { neg = s[0] == '-' s = s[1:] } q, rem, err := leadingInt(s) x = int(q) if err != nil || len(rem) > 0 { return 0, errAtoi } if neg { x = -x } return x, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 11 17:09:28 UTC 2024 - 49.3K bytes - Viewed (0) -
src/math/big/float_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 11 20:22:45 UTC 2024 - 51.9K bytes - Viewed (0)