- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for DstT (0.06 sec)
-
tensorflow/cc/ops/const_op.h
auto orig_const_output = Const(scope, val); if (!scope.ok()) return Output(); typedef typename Input::Initializer::RealType<T>::type DstT; if (val.tensor.dtype() == DataTypeToEnum<DstT>::v()) { return orig_const_output; } if (val.tensor.NumElements() == 0) { Tensor t(DataTypeToEnum<DstT>::v(), val.tensor.shape()); return Const(scope, Input::Initializer(t)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Sep 17 09:17:01 UTC 2020 - 2.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 19:51:50 UTC 2024 - 10.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc
if (node_def->op() == "Cast" && attr->contains("SrcT") && attr->contains("DstT") && attr->at("SrcT").type() == attr->at("DstT").type() && attr->contains("Truncate") && !attr->at("Truncate").b()) { node_def->set_op("Identity"); attr->insert({{"T", attr->at("SrcT")}}); attr->erase("SrcT"); attr->erase("DstT"); attr->erase("Truncate"); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/jit/tests/keras_imagenet_main.pbtxt
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 30 02:52:54 UTC 2019 - 1.3M bytes - Viewed (0) -
tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc
// Attr def {"T: {float, double, int32, int64}"}, // Nodes { {{"two"}, "Const", {}, {{"value", kTwo}, {"dtype", DT_INT64}}}, {{"scale"}, "Cast", {"two"}, {{"SrcT", DT_INT64}, {"DstT", "$T"}}}, {{"y"}, "Mul", {"x", "scale"}, {{"T", "$T"}}}, }); } class MlirGraphOptimizationPassTest : public Test { public: void Init(Status pass_run_result,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 27 08:25:30 UTC 2024 - 16.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/python/tfr_gen_test.py
y = math_ops.Sub(y, z) qmin, qmax = _tfr_quant_act_range('RELU', 1.0, 0) (qmin, qmax) # pylint: disable=pointless-statement d = _tfr_quant_rescale(y, s, 0) e = math_ops.Cast(x=d, DstT=dtypes.int16) f = math_ops.Cast(x=e, DstT=dtypes.int8) return f @composite.Composite('TestIdentityNOp') def _tfr_quant_test_n(x): y = _tfr_quant_raw_data(x) return y class TFRGenTestBase(test.TestCase):
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 13 16:33:28 UTC 2021 - 28.8K bytes - Viewed (0) -
tensorflow/compiler/jit/tests/keras_imagenet_main_graph_mode.pbtxt
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 30 02:52:54 UTC 2019 - 1.1M bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td
let summary = "Cast x of type SrcT to y of DstT."; let arguments = (ins TF_Tensor:$x, DefaultValuedOptionalAttr<BoolAttr, "false">:$Truncate ); let results = (outs TF_Tensor:$y ); TF_DerivedOperandTypeAttr SrcT = TF_DerivedOperandTypeAttr<0>; TF_DerivedResultTypeAttr DstT = TF_DerivedResultTypeAttr<0>; let hasFolder = 1; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 23:24:08 UTC 2024 - 793K bytes - Viewed (0)