Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for SrcT (0.11 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

      auto attr = node_def->mutable_attr();
      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");
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/internal/mlir_bridge_pass_util_test.cc

              {{"two"},
               "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/jit/tests/keras_imagenet_main.pbtxt

      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 {
          b: false
        }
      }
    }
    node {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 02:52:54 UTC 2019
    - 1.3M bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

          {"y: T"},
          // 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)
  5. tensorflow/compiler/jit/tests/keras_imagenet_main_graph_mode.pbtxt

      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 {
          b: false
        }
      }
    }
    node {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 02:52:54 UTC 2019
    - 1.1M bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    def TF_CastOp : TF_Op<"Cast", [Pure, SameOperandsAndResultShape]> {
      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>;
    
    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