- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for grad_ops (0.34 sec)
-
tensorflow/cc/BUILD
], ) tf_cc_test( name = "framework_gradients_test", srcs = ["framework/gradients_test.cc"], deps = [ ":cc_ops", ":client_session", ":grad_op_registry", ":grad_ops", ":gradients", ":testutil", "//tensorflow/core:all_kernels", "//tensorflow/core:framework", "//tensorflow/core:framework_internal", "//tensorflow/core:protos_all_cc",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 27 18:00:18 UTC 2024 - 23.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
llvm::SmallVectorImpl<Operation*>& erase_list, llvm::SmallPtrSetImpl<Operation*>& dead_ops) { for (mlir::Value res : op->getResults()) { for (Operation* user : res.getUsers()) { if (!dead_ops.insert(user).second) continue; RecursiveRemove(user, erase_list, dead_ops); } } erase_list.push_back(op); for (auto& use : op->getOpOperands()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/mnist/ops_defs.py
def _composite_fully_connected(input_, filter_, bias, act): res = tf.raw_ops.MatMul( a=input_, b=filter_, transpose_a=False, transpose_b=True) res = tf.raw_ops.Add(x=res, y=bias) if act == 'RELU': return tf.raw_ops.Relu(features=res) elif act == 'RELU6': return tf.raw_ops.Relu6(features=res) elif act == 'TANH': return tf.raw_ops.Tanh(x=res) else: return res
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Aug 31 20:23:51 UTC 2023 - 6.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/pad/BUILD
], licenses = ["notice"], ) package_group( name = "friends", packages = [ "//tensorflow/compiler/mlir/tfr/...", ], ) gen_op_libraries( name = "pad_ops", src = "ops_defs.py", deps = [ "//tensorflow:tensorflow_py", "//tensorflow/python/ops:array_ops_gen", "//tensorflow/python/platform:flags", "@absl_py//absl:app", ], )
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Oct 19 00:51:34 UTC 2023 - 1.2K bytes - Viewed (0) -
RELEASE.md
* Fixes a security vulnerability caused by lack of validation in `tf.raw_ops.DataFormatVecPermute` and `tf.raw_ops.DataFormatDimMap` ([CVE-2020-26267](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26267)) * Fixes a vulnerability caused by attempting to write to immutable memory region in `tf.raw_ops.ImmutableConst` ([CVE-2020-26268](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-26268)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 730.3K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad.cc
int axis; TF_RETURN_IF_ERROR(GetNodeAttr(op.node()->attrs(), "axis", &axis)); grad_outputs->reserve(N); auto grad_op = Unstack(scope, grad_inputs[0], N, Unstack::Axis(axis)); for (const Output& o : grad_op.output) { grad_outputs->emplace_back(o); } return scope.status(); } REGISTER_GRADIENT_OP("Pack", PackGrad);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 31.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc
// safe. if (auto tensor_array_v3_op = dyn_cast<TF::TensorArrayV3Op>(tf_op)) { // The "flow" in TensorArrayV3 is always a scalar float tensor. // https://www.tensorflow.org/api_docs/python/tf/raw_ops/TensorArrayWriteV3 Value flow = tensor_array_v3_op.getFlow(); Type scalar_f32_tensor_type = RankedTensorType::get(/*shape=*/{}, rewriter.getF32Type()); flow.setType(scalar_f32_tensor_type);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
// possible terminator. return std::next(block->begin()) == block->end() || std::next(block->begin(), 2) == block->end(); } // This pattern matches GraphOps with only one FetchOp (empty) and remaps the // results of the GraphOp to the operands of the FetchOp. struct DropEmptyGraph : public OpRewritePattern<GraphOp> { using OpRewritePattern<GraphOp>::OpRewritePattern;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops.td
def model_fn(args): # do something with dynamic tensor @function.Defun(capture_resource_var_by_value=False) def tpu_subgraph(): return tf.tpu.rewrite(model_fn, args) return tf.raw_ops.TPUPartitionedCall( args=tpu_subgraph.captured_inputs, Tout=[o.type for o in tpu_subgraph.definition.signature.output_arg], f=tpu_subgraph, device_ordinal=[0])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 04:08:35 UTC 2024 - 90.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
elements in `x` must be complex numbers of the form \\(a + bj\\). The absolute value is computed as \\( \sqrt{a^2 + b^2}\\). For example: >>> x = tf.complex(3.0, 4.0) >>> print((tf.raw_ops.ComplexAbs(x=x, Tout=tf.dtypes.float32, name=None)).numpy()) 5.0 }]; let arguments = (ins TensorOf<[TF_Complex128, TF_Complex64]>:$x ); let results = (outs
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0)