Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for _handle_shapes (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/function-resource-args-handle-info.mlir

    }
    
    // Check that we generate _handle_dtypes and _handle_shapes for the resource
    // argument.
    
    // CHECK:      op: "_Arg"
    
    // CHECK:        key: "_handle_dtypes"
    // CHECK-NEXT:   value {
    // CHECK-NEXT:     list {
    // CHECK-NEXT:       type: DT_FLOAT
    // CHECK-NEXT:     }
    // CHECK-NEXT:   }
    // CHECK-NEXT: }
    
    // CHECK:        key: "_handle_shapes"
    // CHECK-NEXT:   value {
    // CHECK-NEXT:     list {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 25 12:28:56 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/tests/keras_imagenet_main.pbtxt

        key: "T"
        value {
          type: DT_RESOURCE
        }
      }
      attr {
        key: "_handle_dtypes"
        value {
          list {
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "_handle_shapes"
        value {
          list {
            shape {
              dim {
                size: 1001
              }
            }
          }
        }
      }
      attr {
        key: "index"
        value {
          i: 268
        }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 30 02:52:54 UTC 2019
    - 1.3M bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-as-function-control-ret.pbtxt

        key: "T"
        value {
          type: DT_RESOURCE
        }
      }
      attr {
        key: "_handle_dtypes"
        value {
          list {
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "_handle_shapes"
        value {
          list {
            shape {
            }
          }
        }
      }
      attr {
        key: "index"
        value {
          i: 1
        }
      }
    }
    node {
      name: "arg2"
      op: "_Arg"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 29 04:41:05 UTC 2021
    - 3.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/graph-as-function.pbtxt

        key: "T"
        value {
          type: DT_RESOURCE
        }
      }
      attr {
        key: "_handle_dtypes"
        value {
          list {
            type: DT_FLOAT
          }
        }
      }
      attr {
        key: "_handle_shapes"
        value {
          list {
            shape {
              dim {
                size: 3
              }
              dim {
                size: 3
              }
              dim {
                size: 1
              }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 24 00:18:34 UTC 2023
    - 5K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

                                handle_shapes_attr.mutable_list()->add_shape());
          }
    
          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
          SetShapeAttribute("_output_shapes", arg_type, node_def->mutable_attr()));
    
      DataType dtype;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

                                handle_shapes_attr.mutable_list()->add_shape());
          }
    
          (*node_def->mutable_attr())["_handle_dtypes"] = handle_dtypes_attr;
          (*node_def->mutable_attr())["_handle_shapes"] = handle_shapes_attr;
        }
      }
    
      TF_RETURN_IF_ERROR(
          SetShapeAttribute("_output_shapes", arg_type, node_def->mutable_attr()));
    
      DataType dtype;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

    }
    
    bool IsResourceOutputShapesAttribute(const AttrValue& attr_value,
                                         llvm::StringRef attr_name) {
      if (attr_name == "_handle_dtypes" || attr_name == "_handle_shapes")
        return attr_value.value_case() == AttrValue::kList;
      return false;
    }
    
    void LoadImporterDialects(mlir::MLIRContext& context) {
      // Load dialects involved in the conversion
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/jit/shape_inference.cc

        return errors::InvalidArgument(
            "Mismatched resource types: ", DataTypeString(a.handle_type), " vs. ",
            DataTypeString(b.handle_type));
      }
      TF_RETURN_IF_ERROR(
          a.handle_shape.MergeWith(b.handle_shape, &result.handle_shape));
      return result;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 13K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/shape_inference.h

      // Shape of the argument tensor.
      PartialTensorShape shape;
    
      // If the argument is a resource variable, the type and shape of the
      // variable's value.
      DataType handle_type = DT_INVALID;
      PartialTensorShape handle_shape;
    };
    typedef std::unordered_map<string, std::vector<InferredShape>> GraphShapeInfo;
    
    // Infer shapes for all Tensors in a graph, and save them in a map.  The vector
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/shape_inference_test.cc

      EXPECT_NE(iter, shape_info.end());
      EXPECT_EQ(iter->second.size(), 1);
      EXPECT_EQ(iter->second.at(0).handle_type, DT_FLOAT);
      TensorShape resource_shape;
      EXPECT_TRUE(iter->second.at(0).handle_shape.AsTensorShape(&resource_shape));
      EXPECT_EQ(resource_shape, TensorShape({2, 3}));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 31 00:41:19 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top