- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 19 for grad_ops (0.17 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/cc/gradients/manip_grad.cc
const std::vector<Output>& grad_inputs, std::vector<Output>* grad_outputs) { auto shift = op.input(1); auto axis = op.input(2); auto grad_op = Roll(scope, grad_inputs[0], Neg(scope, shift), axis); grad_outputs->push_back(grad_op); grad_outputs->push_back(NoGradient()); grad_outputs->push_back(NoGradient()); return scope.status(); } REGISTER_GRADIENT_OP("Roll", RollGrad); } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 19 12:19:42 UTC 2020 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/pad/ops_defs.py
shape = input_.shape.as_list() for i in range(len(shape)): rdims = tf.raw_ops.OneHot( indices=i, depth=len(shape), on_value=True, off_value=False, axis=-1) rarray = tf.raw_ops.Reverse(tensor=input_, dims=rdims) left_padding_size = tf.raw_ops.GatherNd(params=paddings, indices=[i, 0]) right_padding_size = tf.raw_ops.GatherNd(params=paddings, indices=[i, 1]) if mode == 'REFLECT':
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 01 05:00:29 UTC 2021 - 5.6K 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) -
tensorflow/compiler/mlir/tfr/README.md
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: Tue Mar 29 18:32:13 UTC 2022 - 6.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-diff-island.pbtxt
# Verify for functions with control return values, the island with only a # consumed control return value has its control output added to the GraphOps # FetchOp. # Match the island containing the "tf.Neg", capture the output # CHECK: %[[ISLAND_0:[a-z_0-9]*]], %[[ISLAND_0_control:[a-z_0-9]*]] = tf_executor.island wraps "tf.Neg"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 10 19:53:21 UTC 2020 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/pad/pad_ops_test.py
} kwargs_ = { 'input_': input_, 'paddings': paddings, 'mode': mode, } # Make sure the composition python function is correct self._assertOpAndComposite([input_], tf.raw_ops.MirrorPad, ops_defs._composite_mirror_pad, kwargs_, kwargs) # Make sure the translation and decomposition is correct self._assertOpAndComposite([input_],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 3.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-function-control-ret-same-island.pbtxt
# Verify for functions with control return values, the island with a consumed # data output and a consumed control has both its outputs added to the GraphOps # FetchOp. # Match the island containing the "tf.Neg", capture the output # CHECK: %[[ISLAND:[a-z_0-9]*]], %[[ISLAND_control:[a-z_0-9]*]] = tf_executor.island wraps "tf.Neg"
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 10 19:53:21 UTC 2020 - 1.8K bytes - Viewed (0)