Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for DstT (0.06 sec)

  1. 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)
  2. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

               "Const",
               {},
               {{"value", test::AsScalar<int32>(2)}, {"dtype", DT_INT64}}},
              {{"scale"},
               "Cast",
               {"two"},
               {{"SrcT", DT_INT64}, {"DstT", DT_FLOAT}}},
              {{"y"}, "Mul", {"x", "scale"}, {{"T", DT_FLOAT}}},
          });
    
      tensorflow::set_tf2_execution(true);
      FunctionDefLibrary flib;
      *flib.add_function() = fd;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 17 19:51:50 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  3. 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)
  4. tensorflow/compiler/jit/tests/keras_imagenet_main.pbtxt

        }
      }
    }
    node {
      name: "fc1000_1/BiasAdd/Cast"
      op: "Cast"
      input: "fc1000_1/BiasAdd/ReadVariableOp"
      device: "/job:localhost/replica:0/task:0/device:GPU:0"
      attr {
        key: "DstT"
        value {
          type: DT_HALF
        }
      }
      attr {
        key: "SrcT"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "Truncate"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 02:52:54 UTC 2019
    - 1.3M bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. tensorflow/compiler/jit/tests/keras_imagenet_main_graph_mode.pbtxt

      }
    }
    node {
      name: "loss_1/activation_49_loss/Cast"
      op: "Cast"
      input: "loss_1/activation_49_loss/Reshape"
      device: "/job:localhost/replica:0/task:0/device:GPU:0"
      attr {
        key: "DstT"
        value {
          type: DT_INT64
        }
      }
      attr {
        key: "SrcT"
        value {
          type: DT_FLOAT
        }
      }
      attr {
        key: "Truncate"
        value {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 02:52:54 UTC 2019
    - 1.1M bytes
    - Viewed (0)
  8. 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)
Back to top